Properties
decrypt
decrypt: ((ciphertext: Uint8Array, nonce: Uint8Array) => Promise<Uint8Array>)
Type declaration
-
- (ciphertext: Uint8Array, nonce: Uint8Array): Promise<Uint8Array>
-
Parameters
-
ciphertext: Uint8Array
-
nonce: Uint8Array
Returns Promise<Uint8Array>
encrypt
encrypt: ((contractCodeHash: string, msg: object) => Promise<Uint8Array>)
Type declaration
-
- (contractCodeHash: string, msg: object): Promise<Uint8Array>
-
Parameters
-
contractCodeHash: string
-
msg: object
Returns Promise<Uint8Array>
getPubkey
getPubkey: (() => Promise<Uint8Array>)
Type declaration
-
- (): Promise<Uint8Array>
-
Returns Promise<Uint8Array>
getTxEncryptionKey
getTxEncryptionKey: ((nonce: Uint8Array) => Promise<Uint8Array>)
Type declaration
-
- (nonce: Uint8Array): Promise<Uint8Array>
-
Returns Promise<Uint8Array>