feat: multi accounts
This commit is contained in:
parent
ee0c702135
commit
33ac5e60b6
17 changed files with 426 additions and 137 deletions
|
|
@ -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'>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue