feat: support ncryptsec

This commit is contained in:
codytseng 2025-01-15 23:32:22 +08:00
parent 52daf39584
commit e2cdc27545
11 changed files with 246 additions and 73 deletions

View file

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