January 2020
Intermediate to advanced
640 pages
16h 56m
English
import ( "crypto/ecdsa" ) type Document struct { //... } // Append adds a line to the end of the document. func (d *Document) Append(line string) { //... } // Content returns the document contents as a string. func (d *Document) Content() string { //... } // Sign calculates a hash for the document contents, signs it with the // provided private key and returns back the result. func (d *Document) Sign(pk *ecdsa.PrivateKey) (string, error) { //... }