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

    Interface SignResult<H, A>

    The result of sign: everything a CMS SignerInfo needs.

    const { signature, certificate, algorithm, digest } = await sign({ hash: "SHA-256", prepare });
    
    interface SignResult<
        H extends HashAlgorithm = HashAlgorithm,
        A extends SignatureAlgorithm = SignatureAlgorithm,
    > {
        certificate: Certificate;
        hash: H;
        algorithm: A;
        signature: Uint8Array<ArrayBuffer>;
        digest: Uint8Array<ArrayBuffer>;
    }

    Type Parameters

    Index
    certificate: Certificate

    The certificate that signed; the one prepare last received.

    hash: H
    algorithm: A
    signature: Uint8Array<ArrayBuffer>

    RSA: the signature block. ECDSA: raw r‖s (IEEE P1363), each half padded to the curve size.

    digest: Uint8Array<ArrayBuffer>

    The digest that was signed: what prepare returned for certificate.