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

    Class Cryptosuite

    Implements 3.1 Instantiate Cryptosuite

    The Instantiate Cryptosuite algorithm is used to configure a cryptographic suite to be used by the Add Proof and Verify Proof functions in Verifiable Credential Data Integrity 1.0. The algorithm takes an options object (map options) as input and returns a cryptosuite instance (struct cryptosuite).

    1. Initialize cryptosuite to an empty struct.
    2. If options.type does not equal DataIntegrityProof, return cryptosuite.
    3. If options.cryptosuite is bip340-rdfc-2025: 3.1) Set cryptosuite.createProof to the algorithm in Section 3.2.1 Create Proof (bip340-rdfc-2025). 3.2) Set cryptosuite.verifyProof to the algorithm in Section 3.2.2 Verify Proof (bip340-rdfc-2025).
    4. If options.cryptosuite is bip340-jcs-2025: 4.2) Set cryptosuite.createProof to the algorithm in Section 3.3.1 Create Proof (bip340-jcs-2025). 4.3) Set cryptosuite.verifyProof to the algorithm in Section 3.3.2 Verify Proof (bip340-jcs-2025).
    5. Return cryptosuite.

    Cryptosuite

    Implements

    Index

    Constructors

    Properties

    algorithm: "rdfc" | "jcs"

    The algorithm used for canonicalization

    cryptosuite: "bip340-jcs-2025" | "bip340-rdfc-2025"

    The name of the cryptosuite

    multikey: Multikey

    The multikey used to sign and verify proofs

    type: "DataIntegrityProof" = 'DataIntegrityProof'

    The type of the proof

    Methods