From d5f6730514c857d62d188b88df98265359f9e8ad Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Thu, 3 Oct 2024 12:58:52 -0700 Subject: [PATCH] Export Safe class for external usage. --- src/lib/safe.ts | 1 + src/main.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/safe.ts b/src/lib/safe.ts index bd0b689..5da675f 100644 --- a/src/lib/safe.ts +++ b/src/lib/safe.ts @@ -5,6 +5,7 @@ import { buffer, utf8 } from './convert.js' import { Entropy } from './entropy.js' const { subtle } = globalThis.crypto const ERR_MSG = 'Failed to store item in Safe' + export class Safe { #items: Map = new Map() diff --git a/src/main.ts b/src/main.ts index ea71ab9..c4d2553 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,7 +5,8 @@ import { Account } from './lib/account.js' import { SendBlock, ReceiveBlock, ChangeBlock } from './lib/block.js' import { Node } from './lib/node.js' import { Rolodex } from './lib/rolodex.js' +import { Safe } from './lib/safe.js' import Tools from './lib/tools.js' import { Bip44Wallet, Blake2bWallet, LedgerWallet } from './lib/wallet.js' -export { Account, SendBlock, ReceiveBlock, ChangeBlock, Node, Rolodex, Tools, Bip44Wallet, Blake2bWallet, LedgerWallet } +export { Account, SendBlock, ReceiveBlock, ChangeBlock, Node, Rolodex, Safe, Tools, Bip44Wallet, Blake2bWallet, LedgerWallet } -- 2.34.1