@websign/sdk - v0.1.0
    Preparing search index...

    Interface PrepareContext<H, A>

    Passed to prepare, with the certificate. Narrowed to what you asked: with hash: "SHA-384" and algorithm: "ECDSA", context.hash is "SHA-384" and context.algorithm is "ECDSA".

    prepare: (certificate, { hash, algorithm }) => digestOfSignedAttributes(certificate, hash, algorithm)
    
    interface PrepareContext<
        H extends HashAlgorithm = HashAlgorithm,
        A extends SignatureAlgorithm = SignatureAlgorithm,
    > {
        hash: H;
        algorithm: A;
    }

    Type Parameters

    Index
    hash: H
    algorithm: A

    The algorithm the signature will use (for CMS signatureAlgorithm / algorithm protection).