interface EncryptionUtils {
    decrypt: ((ciphertext, nonce) => Promise<Uint8Array>);
    encrypt: ((contractCodeHash, msg) => Promise<Uint8Array>);
    getPubkey: (() => Promise<Uint8Array>);
    getTxEncryptionKey: ((nonce) => Promise<Uint8Array>);
}

Implemented by

Properties

decrypt: ((ciphertext, nonce) => Promise<Uint8Array>)

Type declaration

    • (ciphertext, nonce): Promise<Uint8Array>
    • Parameters

      • ciphertext: Uint8Array
      • nonce: Uint8Array

      Returns Promise<Uint8Array>

encrypt: ((contractCodeHash, msg) => Promise<Uint8Array>)

Type declaration

    • (contractCodeHash, msg): Promise<Uint8Array>
    • Parameters

      • contractCodeHash: string
      • msg: object

      Returns Promise<Uint8Array>

getPubkey: (() => Promise<Uint8Array>)

Type declaration

    • (): Promise<Uint8Array>
    • Returns Promise<Uint8Array>

getTxEncryptionKey: ((nonce) => Promise<Uint8Array>)

Type declaration

    • (nonce): Promise<Uint8Array>
    • Parameters

      • nonce: Uint8Array

      Returns Promise<Uint8Array>

Generated using TypeDoc