Skip to content

Welshman Docs / @welshman/signer / nip44

Variable: nip44 ​

const nip44: object

Defined in: packages/signer/src/util.ts:32

Type declaration ​

decrypt() ​

decrypt: (pubkey, secret, m) => string

Parameters ​

pubkey ​

string

secret ​

string

m ​

string

Returns ​

string

encrypt() ​

encrypt: (pubkey, secret, m) => string

Parameters ​

pubkey ​

string

secret ​

string

m ​

string

Returns ​

string

getSharedSecret() ​

getSharedSecret: (...args) => Uint8Array<ArrayBufferLike>

Parameters ​

args ​

...string[]

Returns ​

Uint8Array<ArrayBufferLike>

getSharedSecret.cache ​

getSharedSecret.cache: LRUCache<string, Uint8Array<ArrayBufferLike>>

getSharedSecret.getKey() ​

getSharedSecret.getKey: (args) => string

Parameters ​
args ​

string[]

Returns ​

string

getSharedSecret.getValue() ​

getSharedSecret.getValue: (args) => Uint8Array

Parameters ​
args ​

string[]

Returns ​

Uint8Array