@relaycorp/veraid
    Preparing search index...

    Class MockTrustChain

    Mock trust chain for testing purposes

    Index

    Properties

    dnssecTrustAnchors: readonly TrustAnchor[]
    signerPrivateKey: CryptoKey$1
    validityPeriod: DatePeriod

    Methods

    • Sign a plaintext with the chain

      Parameters

      • plaintext: ArrayBuffer

        The plaintext to sign

      • serviceOid: string

        The service OID for which to sign the plaintext

      • shouldEncapsulatePlaintext: boolean = true

        Whether to encapsulate the plaintext in the signature

      Returns Promise<SignatureBundle>

      A signature bundle