Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SecretUtils

Index

Methods

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

    • ciphertext: Uint8Array
    • nonce: Uint8Array

    Returns Promise<Uint8Array>

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

    • contractCodeHash: string
    • msg: object

    Returns Promise<Uint8Array>

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

  • getTxEncryptionKey(nonce: Uint8Array): Promise<Uint8Array>
  • Parameters

    • nonce: Uint8Array

    Returns Promise<Uint8Array>

Generated using TypeDoc