Commit eea6f7f3 authored by masala's avatar masala

Adds SharedRandomValue to document for compatibility.

Nonvoting Authority implementation shares s11n.Document's
VerifyAndParseDocument, so this field is added for compatibility.
parent 37313cf0
......@@ -206,6 +206,9 @@ func (s *state) generateDocument(epoch uint64) {
Topology: topology,
Providers: providers,
// For compatibliity with shared s11n implementation between voting
// and non-voting authority, add SharedRandomValue.
doc.SharedRandomValue = make([]byte, s11n.SharedRandomValueLength)
// Serialize and sign the Document.
signed, err := s11n.SignDocument(s.s.identityKey, doc)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment