PreparedSignature
Defined in: packages/sdk/src/types.ts:1677
What the signer signs, from Document.prepareSignature: toBeSigned (the DER of the
signed attributes), the hash to apply (digestAlgorithm), the signature algorithm the
certificate’s key calls for (algorithm) and the bytes of signature the file has room for
(capacity).
0.7.0
Properties
Section titled “Properties”algorithm
Section titled “algorithm”readonly algorithm: "ecdsaP256" | "ecdsaP384" | "rsaPkcs1v15";Defined in: packages/sdk/src/types.ts:1683
The algorithm of the certificate’s key.
capacity
Section titled “capacity”readonly capacity: number;Defined in: packages/sdk/src/types.ts:1685
The bytes of signature the file has room for.
digestAlgorithm
Section titled “digestAlgorithm”readonly digestAlgorithm: "sha256" | "sha384" | "sha512";Defined in: packages/sdk/src/types.ts:1681
The hash the signer applies.
toBeSigned
Section titled “toBeSigned”readonly toBeSigned: Uint8Array<ArrayBuffer>;Defined in: packages/sdk/src/types.ts:1679
The bytes to sign: hash them with PreparedSignature.digestAlgorithm, then sign the hash.