MCPcopy Create free account
hub / github.com/chain/txvm / Predicate

Struct Predicate

protocol/bc/bc.pb.go:102–109  ·  view source on GitHub ↗

Predicate contains the quorum and pubkeys needed to authenticate a block.

Source from the content-addressed store, hash-verified

100
101// Predicate contains the quorum and pubkeys needed to authenticate a block.
102type 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
111func (m *Predicate) Reset() { *m = Predicate{} }
112func (m *Predicate) String() string { return proto.CompactTextString(m) }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected