Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCertificate ¶
func GenerateCertificate( filename string, fileData []byte, timestampFile *ots.File, options CertificateOptions, ) (*bytes.Buffer, error)
GenerateCertificate generates a PDF certificate for an OpenTimestamps timestamp It returns a bytes.Buffer containing the PDF data
Types ¶
type CertificateOptions ¶
type CertificateOptions struct {
// Title for the PDF document
Title string
// Additional comment to include in the certificate
Comment string
// Whether to include the original file content in the PDF (for text files only)
IncludeContent bool
// URL of Esplora API for fetching block information
EsploraURL string
}
CertificateOptions contains options for generating a PDF certificate
func DefaultOptions ¶
func DefaultOptions() CertificateOptions
DefaultOptions returns the default certificate options
Click to show internal directories.
Click to hide internal directories.