UseEncryptionResult
Defined in: src/react/useEncryption.ts:1526
Result returned by the useEncryption hook.
Properties
clearKeyPair()
clearKeyPair: (
walletAddress:string) =>void
Defined in: src/react/useEncryption.ts:1536
Clear the key pair for a wallet address from memory
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
void
exportPublicKey()
exportPublicKey: (
walletAddress:string) =>Promise<string>
Defined in: src/react/useEncryption.ts:1532
Export the public key for a wallet address as base64-encoded SPKI
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
Promise<string>
hasKeyPair()
hasKeyPair: (
walletAddress:string) =>boolean
Defined in: src/react/useEncryption.ts:1534
Check if a key pair exists in memory for a wallet address
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
boolean
requestEncryptionKey()
requestEncryptionKey: (
walletAddress:string) =>Promise<boolean>
Defined in: src/react/useEncryption.ts:1528
Request and generate an encryption key for a wallet address
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
Promise<boolean>
requestKeyPair()
requestKeyPair: (
walletAddress:string) =>Promise<void>
Defined in: src/react/useEncryption.ts:1530
Request and generate an ECDH key pair for a wallet address
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
Promise<void>