Documentation ¶
Index ¶
- Variables
- type Address
- type Blame
- func (*Blame) Descriptor() ([]byte, []int)deprecated
- func (x *Blame) GetAccused() *VerificationKey
- func (x *Blame) GetInvalid() *Invalid
- func (x *Blame) GetKey() *DecryptionKey
- func (x *Blame) GetPackets() *Packets
- func (x *Blame) GetReason() Reason
- func (x *Blame) GetTransaction() *Transaction
- func (*Blame) ProtoMessage()
- func (x *Blame) ProtoReflect() protoreflect.Message
- func (x *Blame) Reset()
- func (x *Blame) String() string
- type Coins
- type DecryptionKey
- func (*DecryptionKey) Descriptor() ([]byte, []int)deprecated
- func (x *DecryptionKey) GetKey() string
- func (x *DecryptionKey) GetPublic() string
- func (*DecryptionKey) ProtoMessage()
- func (x *DecryptionKey) ProtoReflect() protoreflect.Message
- func (x *DecryptionKey) Reset()
- func (x *DecryptionKey) String() string
- type EncryptionKey
- type Hash
- type Inputs
- type Invalid
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetAddress() *Address
- func (x *Message) GetBlame() *Blame
- func (x *Message) GetHash() *Hash
- func (x *Message) GetInputs() map[string]*Coins
- func (x *Message) GetKey() *EncryptionKey
- func (x *Message) GetSignatures() []*Signatures
- func (x *Message) GetStr() string
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type Packet
- func (*Packet) Descriptor() ([]byte, []int)deprecated
- func (x *Packet) GetFromKey() *VerificationKey
- func (x *Packet) GetMessage() *Message
- func (x *Packet) GetNumber() uint32
- func (x *Packet) GetPhase() Phase
- func (x *Packet) GetRegistration() *Registration
- func (x *Packet) GetSession() []byte
- func (x *Packet) GetToKey() *VerificationKey
- func (*Packet) ProtoMessage()
- func (x *Packet) ProtoReflect() protoreflect.Message
- func (x *Packet) Reset()
- func (x *Packet) String() string
- type Packets
- type Phase
- type Reason
- type Registration
- func (*Registration) Descriptor() ([]byte, []int)deprecated
- func (x *Registration) GetAmount() uint64
- func (x *Registration) GetType() ShuffleType
- func (x *Registration) GetVersion() uint64
- func (*Registration) ProtoMessage()
- func (x *Registration) ProtoReflect() protoreflect.Message
- func (x *Registration) Reset()
- func (x *Registration) String() string
- type ShuffleType
- func (ShuffleType) Descriptor() protoreflect.EnumDescriptor
- func (x ShuffleType) Enum() *ShuffleType
- func (ShuffleType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ShuffleType) Number() protoreflect.EnumNumber
- func (x ShuffleType) String() string
- func (ShuffleType) Type() protoreflect.EnumType
- type Signature
- type Signatures
- type Signed
- type Transaction
- type VerificationKey
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Phase_name = map[int32]string{ 0: "NONE", 1: "ANNOUNCEMENT", 2: "SHUFFLE", 3: "BROADCAST", 4: "EQUIVOCATION_CHECK", 5: "SIGNING", 6: "VERIFICATION_AND_SUBMISSION", 7: "BLAME", } Phase_value = map[string]int32{ "NONE": 0, "ANNOUNCEMENT": 1, "SHUFFLE": 2, "BROADCAST": 3, "EQUIVOCATION_CHECK": 4, "SIGNING": 5, "VERIFICATION_AND_SUBMISSION": 6, "BLAME": 7, } )
Enum value maps for Phase.
View Source
var ( ShuffleType_name = map[int32]string{ 0: "DEFAULT", 1: "DUST", } ShuffleType_value = map[string]int32{ "DEFAULT": 0, "DUST": 1, } )
Enum value maps for ShuffleType.
View Source
var ( Reason_name = map[int32]string{ 0: "INSUFFICIENTFUNDS", 1: "DOUBLESPEND", 2: "EQUIVOCATIONFAILURE", 3: "SHUFFLEFAILURE", 4: "SHUFFLEANDEQUIVOCATIONFAILURE", 5: "INVALIDSIGNATURE", 6: "MISSINGOUTPUT", 7: "LIAR", 8: "INVALIDFORMAT", } Reason_value = map[string]int32{ "INSUFFICIENTFUNDS": 0, "DOUBLESPEND": 1, "EQUIVOCATIONFAILURE": 2, "SHUFFLEFAILURE": 3, "SHUFFLEANDEQUIVOCATIONFAILURE": 4, "INVALIDSIGNATURE": 5, "MISSINGOUTPUT": 6, "LIAR": 7, "INVALIDFORMAT": 8, } )
Enum value maps for Reason.
View Source
var File_message_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*Address) Descriptor
deprecated
func (*Address) GetAddress ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶ added in v0.6.20
func (x *Address) ProtoReflect() protoreflect.Message
type Blame ¶
type Blame struct { Reason Reason `protobuf:"varint,1,opt,name=reason,proto3,enum=Reason" json:"reason,omitempty"` Accused *VerificationKey `protobuf:"bytes,2,opt,name=accused,proto3" json:"accused,omitempty"` Key *DecryptionKey `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` Transaction *Transaction `protobuf:"bytes,4,opt,name=transaction,proto3" json:"transaction,omitempty"` Invalid *Invalid `protobuf:"bytes,5,opt,name=invalid,proto3" json:"invalid,omitempty"` Packets *Packets `protobuf:"bytes,6,opt,name=packets,proto3" json:"packets,omitempty"` // contains filtered or unexported fields }
func (*Blame) Descriptor
deprecated
func (*Blame) GetAccused ¶
func (x *Blame) GetAccused() *VerificationKey
func (*Blame) GetInvalid ¶
func (*Blame) GetKey ¶
func (x *Blame) GetKey() *DecryptionKey
func (*Blame) GetPackets ¶
func (*Blame) GetTransaction ¶
func (x *Blame) GetTransaction() *Transaction
func (*Blame) ProtoMessage ¶
func (*Blame) ProtoMessage()
func (*Blame) ProtoReflect ¶ added in v0.6.20
func (x *Blame) ProtoReflect() protoreflect.Message
type Coins ¶ added in v0.3.0
type Coins struct { Coins []string `protobuf:"bytes,1,rep,name=coins,proto3" json:"coins,omitempty"` // contains filtered or unexported fields }
func (*Coins) Descriptor
deprecated
added in
v0.3.0
func (*Coins) ProtoMessage ¶ added in v0.3.0
func (*Coins) ProtoMessage()
func (*Coins) ProtoReflect ¶ added in v0.6.20
func (x *Coins) ProtoReflect() protoreflect.Message
type DecryptionKey ¶
type DecryptionKey struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Public string `protobuf:"bytes,2,opt,name=public,proto3" json:"public,omitempty"` // contains filtered or unexported fields }
func (*DecryptionKey) Descriptor
deprecated
func (*DecryptionKey) Descriptor() ([]byte, []int)
Deprecated: Use DecryptionKey.ProtoReflect.Descriptor instead.
func (*DecryptionKey) GetKey ¶
func (x *DecryptionKey) GetKey() string
func (*DecryptionKey) GetPublic ¶
func (x *DecryptionKey) GetPublic() string
func (*DecryptionKey) ProtoMessage ¶
func (*DecryptionKey) ProtoMessage()
func (*DecryptionKey) ProtoReflect ¶ added in v0.6.20
func (x *DecryptionKey) ProtoReflect() protoreflect.Message
func (*DecryptionKey) Reset ¶
func (x *DecryptionKey) Reset()
func (*DecryptionKey) String ¶
func (x *DecryptionKey) String() string
type EncryptionKey ¶
type EncryptionKey struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*EncryptionKey) Descriptor
deprecated
func (*EncryptionKey) Descriptor() ([]byte, []int)
Deprecated: Use EncryptionKey.ProtoReflect.Descriptor instead.
func (*EncryptionKey) GetKey ¶
func (x *EncryptionKey) GetKey() string
func (*EncryptionKey) ProtoMessage ¶
func (*EncryptionKey) ProtoMessage()
func (*EncryptionKey) ProtoReflect ¶ added in v0.6.20
func (x *EncryptionKey) ProtoReflect() protoreflect.Message
func (*EncryptionKey) Reset ¶
func (x *EncryptionKey) Reset()
func (*EncryptionKey) String ¶
func (x *EncryptionKey) String() string
type Hash ¶
type Hash struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // contains filtered or unexported fields }
func (*Hash) Descriptor
deprecated
func (*Hash) ProtoMessage ¶
func (*Hash) ProtoMessage()
func (*Hash) ProtoReflect ¶ added in v0.6.20
func (x *Hash) ProtoReflect() protoreflect.Message
type Inputs ¶ added in v0.3.0
type Inputs struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Coins []string `protobuf:"bytes,2,rep,name=coins,proto3" json:"coins,omitempty"` // contains filtered or unexported fields }
func (*Inputs) Descriptor
deprecated
added in
v0.3.0
func (*Inputs) GetAddress ¶ added in v0.3.0
func (*Inputs) ProtoMessage ¶ added in v0.3.0
func (*Inputs) ProtoMessage()
func (*Inputs) ProtoReflect ¶ added in v0.6.20
func (x *Inputs) ProtoReflect() protoreflect.Message
type Invalid ¶
type Invalid struct { Invalid []byte `protobuf:"bytes,1,opt,name=invalid,proto3" json:"invalid,omitempty"` // contains filtered or unexported fields }
func (*Invalid) Descriptor
deprecated
func (*Invalid) GetInvalid ¶
func (*Invalid) ProtoMessage ¶
func (*Invalid) ProtoMessage()
func (*Invalid) ProtoReflect ¶ added in v0.6.20
func (x *Invalid) ProtoReflect() protoreflect.Message
type Message ¶
type Message struct { Address *Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Key *EncryptionKey `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Hash *Hash `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"` // map<string, Signature> signatures = 4; Signatures []*Signatures `protobuf:"bytes,4,rep,name=signatures,proto3" json:"signatures,omitempty"` Str string `protobuf:"bytes,5,opt,name=str,proto3" json:"str,omitempty"` Blame *Blame `protobuf:"bytes,6,opt,name=blame,proto3" json:"blame,omitempty"` Inputs map[string]*Coins `` // repeated Signatures signatures = 7; /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetAddress ¶
func (*Message) GetKey ¶
func (x *Message) GetKey() *EncryptionKey
func (*Message) GetSignatures ¶ added in v0.3.0
func (x *Message) GetSignatures() []*Signatures
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶ added in v0.6.20
func (x *Message) ProtoReflect() protoreflect.Message
type Packet ¶
type Packet struct { Session []byte `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"` Number uint32 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` FromKey *VerificationKey `protobuf:"bytes,3,opt,name=from_key,json=fromKey,proto3" json:"from_key,omitempty"` ToKey *VerificationKey `protobuf:"bytes,4,opt,name=to_key,json=toKey,proto3" json:"to_key,omitempty"` Phase Phase `protobuf:"varint,5,opt,name=phase,proto3,enum=Phase" json:"phase,omitempty"` Message *Message `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` Registration *Registration `protobuf:"bytes,7,opt,name=registration,proto3" json:"registration,omitempty"` // contains filtered or unexported fields }
func (*Packet) Descriptor
deprecated
func (*Packet) GetFromKey ¶ added in v0.1.2
func (x *Packet) GetFromKey() *VerificationKey
func (*Packet) GetMessage ¶
func (*Packet) GetRegistration ¶
func (x *Packet) GetRegistration() *Registration
func (*Packet) GetSession ¶
func (*Packet) GetToKey ¶ added in v0.1.2
func (x *Packet) GetToKey() *VerificationKey
func (*Packet) ProtoMessage ¶
func (*Packet) ProtoMessage()
func (*Packet) ProtoReflect ¶ added in v0.6.20
func (x *Packet) ProtoReflect() protoreflect.Message
type Packets ¶
type Packets struct { Packet []*Signed `protobuf:"bytes,1,rep,name=packet,proto3" json:"packet,omitempty"` // contains filtered or unexported fields }
func (*Packets) Descriptor
deprecated
func (*Packets) ProtoMessage ¶
func (*Packets) ProtoMessage()
func (*Packets) ProtoReflect ¶ added in v0.6.20
func (x *Packets) ProtoReflect() protoreflect.Message
type Phase ¶
type Phase int32
func (Phase) Descriptor ¶ added in v0.6.20
func (Phase) Descriptor() protoreflect.EnumDescriptor
func (Phase) EnumDescriptor
deprecated
func (Phase) Number ¶ added in v0.6.20
func (x Phase) Number() protoreflect.EnumNumber
func (Phase) Type ¶ added in v0.6.20
func (Phase) Type() protoreflect.EnumType
type Reason ¶
type Reason int32
const ( Reason_INSUFFICIENTFUNDS Reason = 0 Reason_DOUBLESPEND Reason = 1 Reason_EQUIVOCATIONFAILURE Reason = 2 Reason_SHUFFLEFAILURE Reason = 3 Reason_SHUFFLEANDEQUIVOCATIONFAILURE Reason = 4 Reason_INVALIDSIGNATURE Reason = 5 Reason_MISSINGOUTPUT Reason = 6 Reason_LIAR Reason = 7 Reason_INVALIDFORMAT Reason = 8 )
func (Reason) Descriptor ¶ added in v0.6.20
func (Reason) Descriptor() protoreflect.EnumDescriptor
func (Reason) EnumDescriptor
deprecated
func (Reason) Number ¶ added in v0.6.20
func (x Reason) Number() protoreflect.EnumNumber
func (Reason) Type ¶ added in v0.6.20
func (Reason) Type() protoreflect.EnumType
type Registration ¶
type Registration struct { Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` Type ShuffleType `protobuf:"varint,2,opt,name=type,proto3,enum=ShuffleType" json:"type,omitempty"` Version uint64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*Registration) Descriptor
deprecated
func (*Registration) Descriptor() ([]byte, []int)
Deprecated: Use Registration.ProtoReflect.Descriptor instead.
func (*Registration) GetAmount ¶
func (x *Registration) GetAmount() uint64
func (*Registration) GetType ¶ added in v0.5.0
func (x *Registration) GetType() ShuffleType
func (*Registration) GetVersion ¶ added in v0.6.0
func (x *Registration) GetVersion() uint64
func (*Registration) ProtoMessage ¶
func (*Registration) ProtoMessage()
func (*Registration) ProtoReflect ¶ added in v0.6.20
func (x *Registration) ProtoReflect() protoreflect.Message
func (*Registration) Reset ¶
func (x *Registration) Reset()
func (*Registration) String ¶
func (x *Registration) String() string
type ShuffleType ¶ added in v0.5.0
type ShuffleType int32
const ( ShuffleType_DEFAULT ShuffleType = 0 ShuffleType_DUST ShuffleType = 1 )
func (ShuffleType) Descriptor ¶ added in v0.6.20
func (ShuffleType) Descriptor() protoreflect.EnumDescriptor
func (ShuffleType) Enum ¶ added in v0.6.20
func (x ShuffleType) Enum() *ShuffleType
func (ShuffleType) EnumDescriptor
deprecated
added in
v0.5.0
func (ShuffleType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ShuffleType.Descriptor instead.
func (ShuffleType) Number ¶ added in v0.6.20
func (x ShuffleType) Number() protoreflect.EnumNumber
func (ShuffleType) String ¶ added in v0.5.0
func (x ShuffleType) String() string
func (ShuffleType) Type ¶ added in v0.6.20
func (ShuffleType) Type() protoreflect.EnumType
type Signature ¶
type Signature struct { Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*Signature) Descriptor
deprecated
func (*Signature) GetSignature ¶
func (*Signature) ProtoMessage ¶
func (*Signature) ProtoMessage()
func (*Signature) ProtoReflect ¶ added in v0.6.20
func (x *Signature) ProtoReflect() protoreflect.Message
type Signatures ¶ added in v0.3.0
type Signatures struct { Utxo string `protobuf:"bytes,1,opt,name=utxo,proto3" json:"utxo,omitempty"` Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*Signatures) Descriptor
deprecated
added in
v0.3.0
func (*Signatures) Descriptor() ([]byte, []int)
Deprecated: Use Signatures.ProtoReflect.Descriptor instead.
func (*Signatures) GetSignature ¶ added in v0.3.0
func (x *Signatures) GetSignature() *Signature
func (*Signatures) GetUtxo ¶ added in v0.3.0
func (x *Signatures) GetUtxo() string
func (*Signatures) ProtoMessage ¶ added in v0.3.0
func (*Signatures) ProtoMessage()
func (*Signatures) ProtoReflect ¶ added in v0.6.20
func (x *Signatures) ProtoReflect() protoreflect.Message
func (*Signatures) Reset ¶ added in v0.3.0
func (x *Signatures) Reset()
func (*Signatures) String ¶ added in v0.3.0
func (x *Signatures) String() string
type Signed ¶
type Signed struct { Packet *Packet `protobuf:"bytes,1,opt,name=packet,proto3" json:"packet,omitempty"` Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*Signed) Descriptor
deprecated
func (*Signed) GetSignature ¶
func (*Signed) ProtoMessage ¶
func (*Signed) ProtoMessage()
func (*Signed) ProtoReflect ¶ added in v0.6.20
func (x *Signed) ProtoReflect() protoreflect.Message
type Transaction ¶
type Transaction struct { Transaction []byte `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` // contains filtered or unexported fields }
func (*Transaction) Descriptor
deprecated
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) GetTransaction ¶
func (x *Transaction) GetTransaction() []byte
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) ProtoReflect ¶ added in v0.6.20
func (x *Transaction) ProtoReflect() protoreflect.Message
func (*Transaction) Reset ¶
func (x *Transaction) Reset()
func (*Transaction) String ¶
func (x *Transaction) String() string
type VerificationKey ¶
type VerificationKey struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*VerificationKey) Descriptor
deprecated
func (*VerificationKey) Descriptor() ([]byte, []int)
Deprecated: Use VerificationKey.ProtoReflect.Descriptor instead.
func (*VerificationKey) GetKey ¶
func (x *VerificationKey) GetKey() string
func (*VerificationKey) ProtoMessage ¶
func (*VerificationKey) ProtoMessage()
func (*VerificationKey) ProtoReflect ¶ added in v0.6.20
func (x *VerificationKey) ProtoReflect() protoreflect.Message
func (*VerificationKey) Reset ¶
func (x *VerificationKey) Reset()
func (*VerificationKey) String ¶
func (x *VerificationKey) String() string
Click to show internal directories.
Click to hide internal directories.