From: Chris Duncan Date: Thu, 3 Oct 2024 19:58:52 +0000 (-0700) Subject: Export Safe class for external usage. X-Git-Tag: v0.0.1~1 X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=d5f6730514c857d62d188b88df98265359f9e8ad;p=libnemo.git Export Safe class for external usage. --- 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 }