signatures

package
v2.2.2-0...-90f574e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2020 License: MIT Imports: 5 Imported by: 8

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Ownership) GetConditions

func (m *Ownership) GetConditions() string

func (*Ownership) GetId

func (m *Ownership) GetId() string

func (*Ownership) GetPublicKey

func (m *Ownership) GetPublicKey() *PublicKey

func (*Ownership) Marshal

func (m *Ownership) Marshal() (dAtA []byte, err error)

func (*Ownership) MarshalTo

func (m *Ownership) MarshalTo(dAtA []byte) (int, error)

func (*Ownership) MarshalToSizedBuffer

func (m *Ownership) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Ownership) ProtoMessage

func (*Ownership) ProtoMessage()

func (*Ownership) Reset

func (m *Ownership) Reset()

func (*Ownership) Size

func (m *Ownership) Size() (n int)

func (*Ownership) String

func (m *Ownership) String() string

func (*Ownership) Unmarshal

func (m *Ownership) Unmarshal(dAtA []byte) error

func (*Ownership) XXX_DiscardUnknown

func (m *Ownership) XXX_DiscardUnknown()

func (*Ownership) XXX_Marshal

func (m *Ownership) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ownership) XXX_Merge

func (m *Ownership) XXX_Merge(src proto.Message)

func (*Ownership) XXX_Size

func (m *Ownership) XXX_Size() int

func (*Ownership) XXX_Unmarshal

func (m *Ownership) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*PublicKey) GetPublicKey

func (m *PublicKey) GetPublicKey() []byte

func (*PublicKey) GetType

func (m *PublicKey) GetType() PublicKey_Type

func (*PublicKey) Marshal

func (m *PublicKey) Marshal() (dAtA []byte, err error)

func (*PublicKey) MarshalTo

func (m *PublicKey) MarshalTo(dAtA []byte) (int, error)

func (*PublicKey) MarshalToSizedBuffer

func (m *PublicKey) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PublicKey) ProtoMessage

func (*PublicKey) ProtoMessage()

func (*PublicKey) Reset

func (m *PublicKey) Reset()

func (*PublicKey) Size

func (m *PublicKey) Size() (n int)

func (*PublicKey) String

func (m *PublicKey) String() string

func (*PublicKey) Unmarshal

func (m *PublicKey) Unmarshal(dAtA []byte) error

func (*PublicKey) XXX_DiscardUnknown

func (m *PublicKey) XXX_DiscardUnknown()

func (*PublicKey) XXX_Marshal

func (m *PublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PublicKey) XXX_Merge

func (m *PublicKey) XXX_Merge(src proto.Message)

func (*PublicKey) XXX_Size

func (m *PublicKey) XXX_Size() int

func (*PublicKey) XXX_Unmarshal

func (m *PublicKey) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Signature) GetOwnership

func (m *Signature) GetOwnership() *Ownership

func (*Signature) GetPreImage

func (m *Signature) GetPreImage() string

func (*Signature) GetSignature

func (m *Signature) GetSignature() []byte

func (*Signature) GetSigners

func (m *Signature) GetSigners() []uint32

func (*Signature) Marshal

func (m *Signature) Marshal() (dAtA []byte, err error)

func (*Signature) MarshalTo

func (m *Signature) MarshalTo(dAtA []byte) (int, error)

func (*Signature) MarshalToSizedBuffer

func (m *Signature) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) Reset

func (m *Signature) Reset()

func (*Signature) Size

func (m *Signature) Size() (n int)

func (*Signature) String

func (m *Signature) String() string

func (*Signature) Unmarshal

func (m *Signature) Unmarshal(dAtA []byte) error

func (*Signature) XXX_DiscardUnknown

func (m *Signature) XXX_DiscardUnknown()

func (*Signature) XXX_Marshal

func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Signature) XXX_Merge

func (m *Signature) XXX_Merge(src proto.Message)

func (*Signature) XXX_Size

func (m *Signature) XXX_Size() int

func (*Signature) XXX_Unmarshal

func (m *Signature) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*TreeState) GetCycle

func (m *TreeState) GetCycle() uint64

func (*TreeState) GetHeight

func (m *TreeState) GetHeight() uint64

func (*TreeState) GetNewTip

func (m *TreeState) GetNewTip() []byte

func (*TreeState) GetObjectId

func (m *TreeState) GetObjectId() []byte

func (*TreeState) GetPreviousTip

func (m *TreeState) GetPreviousTip() []byte

func (*TreeState) GetSignature

func (m *TreeState) GetSignature() *Signature

func (*TreeState) GetTransactionId

func (m *TreeState) GetTransactionId() []byte

func (*TreeState) GetView

func (m *TreeState) GetView() uint64

func (*TreeState) Marshal

func (m *TreeState) Marshal() (dAtA []byte, err error)

func (*TreeState) MarshalTo

func (m *TreeState) MarshalTo(dAtA []byte) (int, error)

func (*TreeState) MarshalToSizedBuffer

func (m *TreeState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TreeState) ProtoMessage

func (*TreeState) ProtoMessage()

func (*TreeState) Reset

func (m *TreeState) Reset()

func (*TreeState) Size

func (m *TreeState) Size() (n int)

func (*TreeState) String

func (m *TreeState) String() string

func (*TreeState) Unmarshal

func (m *TreeState) Unmarshal(dAtA []byte) error

func (*TreeState) XXX_DiscardUnknown

func (m *TreeState) XXX_DiscardUnknown()

func (*TreeState) XXX_Marshal

func (m *TreeState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TreeState) XXX_Merge

func (m *TreeState) XXX_Merge(src proto.Message)

func (*TreeState) XXX_Size

func (m *TreeState) XXX_Size() int

func (*TreeState) XXX_Unmarshal

func (m *TreeState) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL