proofspb

package
v0.0.0-...-5cfd4e3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var E_ExcludeFromTree = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.FieldOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         2862100,
	Name:          "proofs.exclude_from_tree",
	Tag:           "varint,2862100,opt,name=exclude_from_tree,json=excludeFromTree",
	Filename:      "proofs/proto/proof.proto",
}
View Source
var E_HashedField = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.FieldOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         2862101,
	Name:          "proofs.hashed_field",
	Tag:           "varint,2862101,opt,name=hashed_field,json=hashedField",
	Filename:      "proofs/proto/proof.proto",
}
View Source
var E_KeyLength = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.FieldOptions)(nil),
	ExtensionType: (*uint64)(nil),
	Field:         2862102,
	Name:          "proofs.key_length",
	Tag:           "varint,2862102,opt,name=key_length,json=keyLength",
	Filename:      "proofs/proto/proof.proto",
}
View Source
var E_MappingKey = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.FieldOptions)(nil),
	ExtensionType: (*string)(nil),
	Field:         2862103,
	Name:          "proofs.mapping_key",
	Tag:           "bytes,2862103,opt,name=mapping_key,json=mappingKey",
	Filename:      "proofs/proto/proof.proto",
}

Functions

This section is empty.

Types

type MerkleHash

type MerkleHash struct {
	Left                 []byte   `protobuf:"bytes,1,opt,name=left,proto3" json:"left,omitempty"`
	Right                []byte   `protobuf:"bytes,2,opt,name=right,proto3" json:"right,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MerkleHash) Descriptor

func (*MerkleHash) Descriptor() ([]byte, []int)

func (*MerkleHash) GetLeft

func (m *MerkleHash) GetLeft() []byte

func (*MerkleHash) GetRight

func (m *MerkleHash) GetRight() []byte

func (*MerkleHash) ProtoMessage

func (*MerkleHash) ProtoMessage()

func (*MerkleHash) Reset

func (m *MerkleHash) Reset()

func (*MerkleHash) String

func (m *MerkleHash) String() string

func (*MerkleHash) XXX_DiscardUnknown

func (m *MerkleHash) XXX_DiscardUnknown()

func (*MerkleHash) XXX_Marshal

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

func (*MerkleHash) XXX_Merge

func (dst *MerkleHash) XXX_Merge(src proto.Message)

func (*MerkleHash) XXX_Size

func (m *MerkleHash) XXX_Size() int

func (*MerkleHash) XXX_Unmarshal

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

type Proof

type Proof struct {
	// Types that are valid to be assigned to Property:
	//	*Proof_ReadableName
	//	*Proof_CompactName
	Property isProof_Property `protobuf_oneof:"property"`
	Value    []byte           `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Salt     []byte           `protobuf:"bytes,3,opt,name=salt,proto3" json:"salt,omitempty"`
	// hash is filled if value & salt are not available
	Hash []byte `protobuf:"bytes,6,opt,name=hash,proto3" json:"hash,omitempty"`
	// Fills either 'hashes' for standard Merkle trees or 'sorted_hashes' for a lexicograhical ordered of a node hash
	// not both
	Hashes               []*MerkleHash `protobuf:"bytes,4,rep,name=hashes,proto3" json:"hashes,omitempty"`
	SortedHashes         [][]byte      `protobuf:"bytes,5,rep,name=sorted_hashes,json=sortedHashes,proto3" json:"sorted_hashes,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*Proof) Descriptor

func (*Proof) Descriptor() ([]byte, []int)

func (*Proof) GetCompactName

func (m *Proof) GetCompactName() []byte

func (*Proof) GetHash

func (m *Proof) GetHash() []byte

func (*Proof) GetHashes

func (m *Proof) GetHashes() []*MerkleHash

func (*Proof) GetProperty

func (m *Proof) GetProperty() isProof_Property

func (*Proof) GetReadableName

func (m *Proof) GetReadableName() string

func (*Proof) GetSalt

func (m *Proof) GetSalt() []byte

func (*Proof) GetSortedHashes

func (m *Proof) GetSortedHashes() [][]byte

func (*Proof) GetValue

func (m *Proof) GetValue() []byte

func (*Proof) ProtoMessage

func (*Proof) ProtoMessage()

func (*Proof) Reset

func (m *Proof) Reset()

func (*Proof) String

func (m *Proof) String() string

func (*Proof) XXX_DiscardUnknown

func (m *Proof) XXX_DiscardUnknown()

func (*Proof) XXX_Marshal

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

func (*Proof) XXX_Merge

func (dst *Proof) XXX_Merge(src proto.Message)

func (*Proof) XXX_OneofFuncs

func (*Proof) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*Proof) XXX_Size

func (m *Proof) XXX_Size() int

func (*Proof) XXX_Unmarshal

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

type Proof_CompactName

type Proof_CompactName struct {
	CompactName []byte `protobuf:"bytes,9,opt,name=compact_name,json=compactName,proto3,oneof"`
}

func (*Proof_CompactName) String

func (pn *Proof_CompactName) String() string

type Proof_ReadableName

type Proof_ReadableName struct {
	ReadableName string `protobuf:"bytes,7,opt,name=readable_name,json=readableName,proto3,oneof"`
}

func (*Proof_ReadableName) String

func (pn *Proof_ReadableName) String() string

type PropertyName

type PropertyName isProof_Property

PropertyName is a []byte-convertible name of a Property. A PropertyName can be extracted from a Property using a compact or human-readable encoding

type Salt

type Salt struct {
	Compact              []byte   `protobuf:"bytes,1,opt,name=compact,proto3" json:"compact,omitempty"`
	Value                []byte   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Salt) Descriptor

func (*Salt) Descriptor() ([]byte, []int)

func (*Salt) GetCompact

func (m *Salt) GetCompact() []byte

func (*Salt) GetValue

func (m *Salt) GetValue() []byte

func (*Salt) ProtoMessage

func (*Salt) ProtoMessage()

func (*Salt) Reset

func (m *Salt) Reset()

func (*Salt) String

func (m *Salt) String() string

func (*Salt) XXX_DiscardUnknown

func (m *Salt) XXX_DiscardUnknown()

func (*Salt) XXX_Marshal

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

func (*Salt) XXX_Merge

func (dst *Salt) XXX_Merge(src proto.Message)

func (*Salt) XXX_Size

func (m *Salt) XXX_Size() int

func (*Salt) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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