Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EncryptionUtilsImpl

Hierarchy

  • EncryptionUtilsImpl

Implements

Index

Constructors

Properties

pubkey: Uint8Array

Methods

  • decrypt(ciphertext: Uint8Array, nonce: Uint8Array): Promise<Uint8Array>
  • encrypt(contractCodeHash: string, msg: object): Promise<Uint8Array>
  • getPubkey(): Promise<Uint8Array>
  • getTxEncryptionKey(nonce: Uint8Array): Promise<Uint8Array>
  • GenerateNewKeyPair(): { privkey: Uint8Array; pubkey: Uint8Array }
  • Returns { privkey: Uint8Array; pubkey: Uint8Array }

    • privkey: Uint8Array
    • pubkey: Uint8Array
  • GenerateNewKeyPairFromSeed(seed: Uint8Array): { privkey: Uint8Array; pubkey: Uint8Array }
  • Parameters

    • seed: Uint8Array

    Returns { privkey: Uint8Array; pubkey: Uint8Array }

    • privkey: Uint8Array
    • pubkey: Uint8Array
  • GenerateNewSeed(): Uint8Array