Properties
Optional
Abstract
epoch
epoch?: number
Abstract
publicKey
publicKey: Uint8Array
Methods
Abstract
decrypt
- decrypt(nonce, ciphertext): Uint8Array
Parameters
- nonce: Uint8Array
- ciphertext: Uint8Array
Returns Uint8Array
Abstract
encrypt
- encrypt(plaintext, nonce?): {
ciphertext: Uint8Array;
nonce: Uint8Array;
} Parameters
- plaintext: Uint8Array
Optional
nonce: Uint8Array
Returns {
ciphertext: Uint8Array;
nonce: Uint8Array;
}
ciphertext: Uint8Array
nonce: Uint8Array
encryptCall
- encryptCall(calldata?, nonce?): BytesLike
Parameters
Optional
calldata: null | BytesLikeOptional
nonce: Uint8Array
encryptResult
- encryptResult(ok?, innerFail?, outerFail?): Uint8Array
Parameters
Optional
ok: Uint8ArrayOptional
innerFail: stringOptional
outerFail: string
Returns Uint8Array
Decrypts the data contained within a hex-encoded serialized envelope.