Methods
getAccounts
- getAccounts(): { address: string; algo: string; pubkey: Uint8Array }[]
Returns { address: string; algo: string; pubkey: Uint8Array }[]
Abstract getAccountsWithPrivKey
- getAccountsWithPrivKey(): { address: string; addressInfo: P2Ret; algo: string; privateKey: Uint8Array; pubkey: Uint8Array }[]
Returns { address: string; addressInfo: P2Ret; algo: string; privateKey: Uint8Array; pubkey: Uint8Array }[]
signECDSA
- signECDSA(address: string, hash: Uint8Array): Promise<{ recoveryParam: number; signature: Uint8Array }>
Parameters
address: string
hash: Uint8Array
Returns Promise<{ recoveryParam: number; signature: Uint8Array }>
signIdx
- signIdx(address: string, tx: Transaction, idx: number): void
Parameters
address: string
tx: Transaction
idx: number
Returns void
signPsbt
- signPsbt(address: string, psbt: string): { signTx: (() => void); tx: Transaction }
Parameters
address: string
psbt: string
Returns { signTx: (() => void); tx: Transaction }
signTx: (() => void)
tx: Transaction