Documentation ¶
Index ¶
- Variables
- type Ownership
- func (*Ownership) Descriptor() ([]byte, []int)
- func (m *Ownership) GetConditions() string
- func (m *Ownership) GetId() string
- func (m *Ownership) GetPublicKey() *PublicKey
- func (m *Ownership) Marshal() (dAtA []byte, err error)
- func (m *Ownership) MarshalTo(dAtA []byte) (int, error)
- func (m *Ownership) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Ownership) ProtoMessage()
- func (m *Ownership) Reset()
- func (m *Ownership) Size() (n int)
- func (m *Ownership) String() string
- func (m *Ownership) Unmarshal(dAtA []byte) error
- func (m *Ownership) XXX_DiscardUnknown()
- func (m *Ownership) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Ownership) XXX_Merge(src proto.Message)
- func (m *Ownership) XXX_Size() int
- func (m *Ownership) XXX_Unmarshal(b []byte) error
- type PublicKey
- func (*PublicKey) Descriptor() ([]byte, []int)
- func (m *PublicKey) GetPublicKey() []byte
- func (m *PublicKey) GetType() PublicKey_Type
- func (m *PublicKey) Marshal() (dAtA []byte, err error)
- func (m *PublicKey) MarshalTo(dAtA []byte) (int, error)
- func (m *PublicKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PublicKey) ProtoMessage()
- func (m *PublicKey) Reset()
- func (m *PublicKey) Size() (n int)
- func (m *PublicKey) String() string
- func (m *PublicKey) Unmarshal(dAtA []byte) error
- func (m *PublicKey) XXX_DiscardUnknown()
- func (m *PublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PublicKey) XXX_Merge(src proto.Message)
- func (m *PublicKey) XXX_Size() int
- func (m *PublicKey) XXX_Unmarshal(b []byte) error
- type PublicKey_Type
- type Signature
- func (*Signature) Descriptor() ([]byte, []int)
- func (m *Signature) GetOwnership() *Ownership
- func (m *Signature) GetPreImage() string
- func (m *Signature) GetSignature() []byte
- func (m *Signature) GetSigners() []uint32
- func (m *Signature) Marshal() (dAtA []byte, err error)
- func (m *Signature) MarshalTo(dAtA []byte) (int, error)
- func (m *Signature) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Signature) ProtoMessage()
- func (m *Signature) Reset()
- func (m *Signature) Size() (n int)
- func (m *Signature) String() string
- func (m *Signature) Unmarshal(dAtA []byte) error
- func (m *Signature) XXX_DiscardUnknown()
- func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Signature) XXX_Merge(src proto.Message)
- func (m *Signature) XXX_Size() int
- func (m *Signature) XXX_Unmarshal(b []byte) error
- type TreeState
- func (*TreeState) Descriptor() ([]byte, []int)
- func (m *TreeState) GetCycle() uint64
- func (m *TreeState) GetHeight() uint64
- func (m *TreeState) GetNewTip() []byte
- func (m *TreeState) GetObjectId() []byte
- func (m *TreeState) GetPreviousTip() []byte
- func (m *TreeState) GetSignature() *Signature
- func (m *TreeState) GetTransactionId() []byte
- func (m *TreeState) GetView() uint64
- func (m *TreeState) Marshal() (dAtA []byte, err error)
- func (m *TreeState) MarshalTo(dAtA []byte) (int, error)
- func (m *TreeState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TreeState) ProtoMessage()
- func (m *TreeState) Reset()
- func (m *TreeState) Size() (n int)
- func (m *TreeState) String() string
- func (m *TreeState) Unmarshal(dAtA []byte) error
- func (m *TreeState) XXX_DiscardUnknown()
- func (m *TreeState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TreeState) XXX_Merge(src proto.Message)
- func (m *TreeState) XXX_Size() int
- func (m *TreeState) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthSignatures = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSignatures = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupSignatures = fmt.Errorf("proto: unexpected end of group") )
View Source
var PublicKey_Type_name = map[int32]string{
0: "KeyTypeBLSGroupSig",
1: "KeyTypeSecp256k1",
}
View Source
var PublicKey_Type_value = map[string]int32{
"KeyTypeBLSGroupSig": 0,
"KeyTypeSecp256k1": 1,
}
Functions ¶
This section is empty.
Types ¶
type Ownership ¶
type Ownership struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` PublicKey *PublicKey `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Conditions string `protobuf:"bytes,3,opt,name=conditions,proto3" json:"conditions,omitempty"` }
func (*Ownership) Descriptor ¶
func (*Ownership) GetConditions ¶
func (*Ownership) GetPublicKey ¶
func (*Ownership) MarshalToSizedBuffer ¶
func (*Ownership) ProtoMessage ¶
func (*Ownership) ProtoMessage()
func (*Ownership) XXX_DiscardUnknown ¶
func (m *Ownership) XXX_DiscardUnknown()
func (*Ownership) XXX_Marshal ¶
func (*Ownership) XXX_Unmarshal ¶
type PublicKey ¶
type PublicKey struct { Type PublicKey_Type `protobuf:"varint,1,opt,name=type,proto3,enum=v2signatures.PublicKey_Type" json:"type,omitempty"` PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` }
func (*PublicKey) Descriptor ¶
func (*PublicKey) GetPublicKey ¶
func (*PublicKey) GetType ¶
func (m *PublicKey) GetType() PublicKey_Type
func (*PublicKey) MarshalToSizedBuffer ¶
func (*PublicKey) ProtoMessage ¶
func (*PublicKey) ProtoMessage()
func (*PublicKey) XXX_DiscardUnknown ¶
func (m *PublicKey) XXX_DiscardUnknown()
func (*PublicKey) XXX_Marshal ¶
func (*PublicKey) XXX_Unmarshal ¶
type PublicKey_Type ¶
type PublicKey_Type int32
const ( PublicKey_KeyTypeBLSGroupSig PublicKey_Type = 0 PublicKey_KeyTypeSecp256k1 PublicKey_Type = 1 )
func (PublicKey_Type) EnumDescriptor ¶
func (PublicKey_Type) EnumDescriptor() ([]byte, []int)
func (PublicKey_Type) String ¶
func (x PublicKey_Type) String() string
type Signature ¶
type Signature struct { Ownership *Ownership `protobuf:"bytes,1,opt,name=ownership,proto3" json:"ownership,omitempty"` Signers []uint32 `protobuf:"varint,2,rep,packed,name=signers,proto3" json:"signers,omitempty"` Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` PreImage string `protobuf:"bytes,4,opt,name=pre_image,json=preImage,proto3" json:"pre_image,omitempty"` }
func (*Signature) Descriptor ¶
func (*Signature) GetOwnership ¶
func (*Signature) GetPreImage ¶
func (*Signature) GetSignature ¶
func (*Signature) GetSigners ¶
func (*Signature) MarshalToSizedBuffer ¶
func (*Signature) ProtoMessage ¶
func (*Signature) ProtoMessage()
func (*Signature) XXX_DiscardUnknown ¶
func (m *Signature) XXX_DiscardUnknown()
func (*Signature) XXX_Marshal ¶
func (*Signature) XXX_Unmarshal ¶
type TreeState ¶
type TreeState struct { Signature *Signature `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` ObjectId []byte `protobuf:"bytes,2,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` PreviousTip []byte `protobuf:"bytes,3,opt,name=previous_tip,json=previousTip,proto3" json:"previous_tip,omitempty"` NewTip []byte `protobuf:"bytes,4,opt,name=new_tip,json=newTip,proto3" json:"new_tip,omitempty"` TransactionId []byte `protobuf:"bytes,5,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` Height uint64 `protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty"` View uint64 `protobuf:"varint,7,opt,name=view,proto3" json:"view,omitempty"` Cycle uint64 `protobuf:"varint,8,opt,name=cycle,proto3" json:"cycle,omitempty"` }
func (*TreeState) Descriptor ¶
func (*TreeState) GetObjectId ¶
func (*TreeState) GetPreviousTip ¶
func (*TreeState) GetSignature ¶
func (*TreeState) GetTransactionId ¶
func (*TreeState) MarshalToSizedBuffer ¶
func (*TreeState) ProtoMessage ¶
func (*TreeState) ProtoMessage()
func (*TreeState) XXX_DiscardUnknown ¶
func (m *TreeState) XXX_DiscardUnknown()
func (*TreeState) XXX_Marshal ¶
func (*TreeState) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.