Predicate contains the quorum and pubkeys needed to authenticate a block.
| 100 | |
| 101 | // Predicate contains the quorum and pubkeys needed to authenticate a block. |
| 102 | type Predicate struct { |
| 103 | Version int64 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` |
| 104 | // These fields apply only when version is 1. |
| 105 | Quorum int32 `protobuf:"varint,2,opt,name=quorum" json:"quorum,omitempty"` |
| 106 | Pubkeys [][]byte `protobuf:"bytes,3,rep,name=pubkeys,proto3" json:"pubkeys,omitempty"` |
| 107 | // Fields for predicate versions other than 1. |
| 108 | OtherFields []*DataItem `protobuf:"bytes,4,rep,name=other_fields,json=otherFields" json:"other_fields,omitempty"` |
| 109 | } |
| 110 | |
| 111 | func (m *Predicate) Reset() { *m = Predicate{} } |
| 112 | func (m *Predicate) String() string { return proto.CompactTextString(m) } |
nothing calls this directly
no outgoing calls
no test coverage detected