5 // Nonce contains data used, among other things, for distinguishing
6 // otherwise-identical issuances (when used as those issuances'
7 // "anchors"). It satisfies the Entry interface.
9 func (Nonce) typ() string { return "nonce1" }
10 func (n *Nonce) writeForHash(w io.Writer) {
11 mustWriteForHash(w, n.Program)
12 mustWriteForHash(w, n.TimeRangeId)
13 mustWriteForHash(w, n.ExtHash)
16 // NewNonce creates a new Nonce.
17 func NewNonce(p *Program, trID *Hash) *Nonce {
24 func (n *Nonce) SetAnchored(id *Hash) {
25 n.WitnessAnchoredId = id