A cipher that pretends to be an encrypting cipher. Used for tests.

Hierarchy

Constructors

Properties

epoch: undefined = undefined
kind: Kind = Kind.Mock
publicKey: Uint8Array = ...
NONCE: Uint8Array = ...

Methods

  • Decrypts the data contained within call

    This is useful for creating tools, and also decoding previously-sent transactions that have used the same encryption key.

    Parameters

    • nonce: Uint8Array
    • ciphertext: Uint8Array

    Returns Promise<Uint8Array>

  • Decrypts the data contained within a hex-encoded serialized envelope.

    Parameters

    • callResult: BytesLike

    Returns Promise<string>

  • Parameters

    • plaintext: Uint8Array

    Returns Promise<{
        ciphertext: Uint8Array;
        nonce: Uint8Array;
    }>

Generated using TypeDoc