feat: multi accounts

This commit is contained in:
codytseng 2024-12-23 23:22:49 +08:00
parent ee0c702135
commit 33ac5e60b6
17 changed files with 426 additions and 137 deletions

View file

@ -52,10 +52,14 @@ export interface ISigner {
signEvent: (draftEvent: TDraftEvent) => Promise<Event | null>
}
export type TSignerType = 'nsec' | 'nip-07' | 'bunker' | 'browser-nsec'
export type TAccount = {
pubkey: string
signerType: 'nsec' | 'browser-nsec' | 'nip-07' | 'bunker'
signerType: TSignerType
nsec?: string
bunker?: string
bunkerClientSecretKey?: string
}
export type TAccountPointer = Pick<TAccount, 'pubkey' | 'signerType'>