A Cipher that does not encrypt data.

This cipher is useful for debugging and sending messages that you would prefer everyone to be able to see (e.g., for auditing purposes).

Hierarchy

Constructors

Properties

epoch: undefined = undefined
kind: Kind = Kind.Plain
publicKey: 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;
    }>

  • Parameters

    • plaintext: Uint8Array

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

Generated using TypeDoc