Hierarchy

Constructors

Properties

epoch: undefined | number
kind: Kind
publicKey: Uint8Array

Methods

  • Parameters

    • nonce: Uint8Array
    • ciphertext: Uint8Array

    Returns Promise<Uint8Array>

  • 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<AeadEnvelope>

  • Encrypts the plaintext and encodes it for sending.

    Parameters

    • Optional plaintext: BytesLike

    Returns Promise<string>

  • Encrypts the plaintext and formats it into an envelope.

    Parameters

    • Optional plaintext: BytesLike

    Returns Promise<undefined | Envelope>

Generated using TypeDoc