libp2p
    Preparing search index...

    Interface Envelope

    A message with a signed payload.

    interface Envelope {
        payload: Uint8Array;
        payloadType: Uint8Array<ArrayBufferLike> | Uint8ArrayList;
        publicKey: PublicKey;
        signature: Uint8Array<ArrayBufferLike> | Uint8ArrayList;
        equals(other?: Envelope): boolean;
        marshal(): Uint8Array;
        validate(domain: string): Promise<boolean>;
    }

    Implemented by

    Index

    Properties

    payload: Uint8Array

    The contents of the envelope

    payloadType: Uint8Array<ArrayBufferLike> | Uint8ArrayList

    How the payload should be interpreted

    publicKey: PublicKey

    The public key of the keypair used to sign the payload

    signature: Uint8Array<ArrayBufferLike> | Uint8ArrayList

    A signature that can be used to verify the payload is intact

    Methods