message

package
v0.6.20 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2020 License: MIT Imports: 5 Imported by: 1

Documentation

Index

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

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetAddress

func (x *Address) GetAddress() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect added in v0.6.20

func (x *Address) ProtoReflect() protoreflect.Message

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

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

Deprecated: Use Blame.ProtoReflect.Descriptor instead.

func (*Blame) GetAccused

func (x *Blame) GetAccused() *VerificationKey

func (*Blame) GetInvalid

func (x *Blame) GetInvalid() *Invalid

func (*Blame) GetKey

func (x *Blame) GetKey() *DecryptionKey

func (*Blame) GetPackets

func (x *Blame) GetPackets() *Packets

func (*Blame) GetReason

func (x *Blame) GetReason() Reason

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

func (*Blame) Reset

func (x *Blame) Reset()

func (*Blame) String

func (x *Blame) String() string

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

Deprecated: Use Coins.ProtoReflect.Descriptor instead.

func (*Coins) GetCoins added in v0.3.0

func (x *Coins) GetCoins() []string

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

func (*Coins) Reset added in v0.3.0

func (x *Coins) Reset()

func (*Coins) String added in v0.3.0

func (x *Coins) String() string

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

Deprecated: Use Hash.ProtoReflect.Descriptor instead.

func (*Hash) GetHash

func (x *Hash) GetHash() []byte

func (*Hash) ProtoMessage

func (*Hash) ProtoMessage()

func (*Hash) ProtoReflect added in v0.6.20

func (x *Hash) ProtoReflect() protoreflect.Message

func (*Hash) Reset

func (x *Hash) Reset()

func (*Hash) String

func (x *Hash) String() string

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

Deprecated: Use Inputs.ProtoReflect.Descriptor instead.

func (*Inputs) GetAddress added in v0.3.0

func (x *Inputs) GetAddress() string

func (*Inputs) GetCoins added in v0.3.0

func (x *Inputs) GetCoins() []string

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

func (*Inputs) Reset added in v0.3.0

func (x *Inputs) Reset()

func (*Inputs) String added in v0.3.0

func (x *Inputs) String() string

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

Deprecated: Use Invalid.ProtoReflect.Descriptor instead.

func (*Invalid) GetInvalid

func (x *Invalid) GetInvalid() []byte

func (*Invalid) ProtoMessage

func (*Invalid) ProtoMessage()

func (*Invalid) ProtoReflect added in v0.6.20

func (x *Invalid) ProtoReflect() protoreflect.Message

func (*Invalid) Reset

func (x *Invalid) Reset()

func (*Invalid) String

func (x *Invalid) String() string

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetAddress

func (x *Message) GetAddress() *Address

func (*Message) GetBlame

func (x *Message) GetBlame() *Blame

func (*Message) GetHash

func (x *Message) GetHash() *Hash

func (*Message) GetInputs added in v0.3.0

func (x *Message) GetInputs() map[string]*Coins

func (*Message) GetKey

func (x *Message) GetKey() *EncryptionKey

func (*Message) GetSignatures added in v0.3.0

func (x *Message) GetSignatures() []*Signatures

func (*Message) GetStr

func (x *Message) GetStr() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect added in v0.6.20

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

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

Deprecated: Use Packet.ProtoReflect.Descriptor instead.

func (*Packet) GetFromKey added in v0.1.2

func (x *Packet) GetFromKey() *VerificationKey

func (*Packet) GetMessage

func (x *Packet) GetMessage() *Message

func (*Packet) GetNumber

func (x *Packet) GetNumber() uint32

func (*Packet) GetPhase

func (x *Packet) GetPhase() Phase

func (*Packet) GetRegistration

func (x *Packet) GetRegistration() *Registration

func (*Packet) GetSession

func (x *Packet) GetSession() []byte

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

func (*Packet) Reset

func (x *Packet) Reset()

func (*Packet) String

func (x *Packet) String() string

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

Deprecated: Use Packets.ProtoReflect.Descriptor instead.

func (*Packets) GetPacket

func (x *Packets) GetPacket() []*Signed

func (*Packets) ProtoMessage

func (*Packets) ProtoMessage()

func (*Packets) ProtoReflect added in v0.6.20

func (x *Packets) ProtoReflect() protoreflect.Message

func (*Packets) Reset

func (x *Packets) Reset()

func (*Packets) String

func (x *Packets) String() string

type Phase

type Phase int32
const (
	Phase_NONE                        Phase = 0
	Phase_ANNOUNCEMENT                Phase = 1
	Phase_SHUFFLE                     Phase = 2
	Phase_BROADCAST                   Phase = 3
	Phase_EQUIVOCATION_CHECK          Phase = 4
	Phase_SIGNING                     Phase = 5
	Phase_VERIFICATION_AND_SUBMISSION Phase = 6
	Phase_BLAME                       Phase = 7
)

func (Phase) Descriptor added in v0.6.20

func (Phase) Descriptor() protoreflect.EnumDescriptor

func (Phase) Enum added in v0.6.20

func (x Phase) Enum() *Phase

func (Phase) EnumDescriptor deprecated

func (Phase) EnumDescriptor() ([]byte, []int)

Deprecated: Use Phase.Descriptor instead.

func (Phase) Number added in v0.6.20

func (x Phase) Number() protoreflect.EnumNumber

func (Phase) String

func (x Phase) String() string

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) Enum added in v0.6.20

func (x Reason) Enum() *Reason

func (Reason) EnumDescriptor deprecated

func (Reason) EnumDescriptor() ([]byte, []int)

Deprecated: Use Reason.Descriptor instead.

func (Reason) Number added in v0.6.20

func (x Reason) Number() protoreflect.EnumNumber

func (Reason) String

func (x Reason) String() string

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) 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

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

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetSignature

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

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect added in v0.6.20

func (x *Signature) ProtoReflect() protoreflect.Message

func (*Signature) Reset

func (x *Signature) Reset()

func (*Signature) String

func (x *Signature) String() string

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

Deprecated: Use Signed.ProtoReflect.Descriptor instead.

func (*Signed) GetPacket

func (x *Signed) GetPacket() *Packet

func (*Signed) GetSignature

func (x *Signed) GetSignature() *Signature

func (*Signed) ProtoMessage

func (*Signed) ProtoMessage()

func (*Signed) ProtoReflect added in v0.6.20

func (x *Signed) ProtoReflect() protoreflect.Message

func (*Signed) Reset

func (x *Signed) Reset()

func (*Signed) String

func (x *Signed) String() string

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

Jump to

Keyboard shortcuts

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