Documentation
¶
Overview ¶
Package seal applies the Inkless platform seal to a PDF as one incremental update: an optional signing summary page and a certification signature with an RFC 3161 signature timestamp (PAdES baseline B-T).
Index ¶
Constants ¶
const Reason = "Sealed by Inkless: this file and its evidence were issued unchanged. Signer actions are recorded in the evidence package."
Reason is the signature reason recorded in every seal.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
Check reports whether original can be sealed with a summary page, using a throwaway key and no timestamp. Run it when a document is uploaded.
Types ¶
type Options ¶
type Options struct {
// Signer holds the private key of Chain[0]; it signs once per seal.
Signer crypto.Signer
// Chain is the seal certificate followed by its intermediates.
Chain []*x509.Certificate
// TSAURL is the RFC 3161 endpoint that timestamps the signature.
TSAURL string
// At is the signing time recorded in the signature dictionary.
At time.Time
// Summary, if set, is added as a final page; the first line is its title.
Summary []string
}
Options configures Seal.