@did-btc1/cryptosuite
    Preparing search index...

    Class DataIntegrityProof

    Implements section 2.2.1 DataIntegrityProof of the Data Integrity BIP-340 Cryptosuite spec DataIntegrityProof

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    cryptosuite: Cryptosuite

    Methods

    • Verify a proof.

      Parameters

      • params: {
            document: string;
            expectedChallenge?: string;
            expectedDomain?: string[];
            expectedPurpose: string;
            mediaType?: string;
        }

        Parameters for verifying a proof.

        • document: string

          The document to verify.

        • OptionalexpectedChallenge?: string

          The expected challenge of the proof.

        • OptionalexpectedDomain?: string[]

          The expected domain of the proof.

        • expectedPurpose: string

          The expected purpose of the proof.

        • OptionalmediaType?: string

          The media type of the document.

      Returns Promise<VerificationResult>

      The result of verifying the proof.