Skip to content
Lamina PDF
0.9.0
GitHub
Open the web app

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

readonly algorithm: "ecdsaP256" | "ecdsaP384" | "rsaPkcs1v15";

Defined in: packages/sdk/src/types.ts:1683

The algorithm of the certificate’s key.


readonly capacity: number;

Defined in: packages/sdk/src/types.ts:1685

The bytes of signature the file has room for.


readonly digestAlgorithm: "sha256" | "sha384" | "sha512";

Defined in: packages/sdk/src/types.ts:1681

The hash the signer applies.


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.