proofspb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 6 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional bool exclude_from_tree = 2862100;
	E_ExcludeFromTree = &file_proof_proto_extTypes[0]
	// optional bool hashed_field = 2862101;
	E_HashedField = &file_proof_proto_extTypes[1]
	// optional uint64 field_length = 2862102;
	E_FieldLength = &file_proof_proto_extTypes[2]
	// optional string mapping_key = 2862103;
	E_MappingKey = &file_proof_proto_extTypes[3]
	// optional bool append_fields = 2862104;
	E_AppendFields = &file_proof_proto_extTypes[4]
	// optional bool no_salt = 2862105;
	E_NoSalt = &file_proof_proto_extTypes[5]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var File_proof_proto protoreflect.FileDescriptor

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"`
	// contains filtered or unexported fields
}

func (*MerkleHash) Descriptor deprecated

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

Deprecated: Use MerkleHash.ProtoReflect.Descriptor instead.

func (*MerkleHash) GetLeft

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

func (*MerkleHash) GetRight

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

func (*MerkleHash) ProtoMessage

func (*MerkleHash) ProtoMessage()

func (*MerkleHash) ProtoReflect added in v1.0.0

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

func (*MerkleHash) Reset

func (x *MerkleHash) Reset()

func (*MerkleHash) String

func (x *MerkleHash) String() string

type Proof

type Proof struct {

	// Types that are assignable 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"`
	// contains filtered or unexported fields
}

func (*Proof) Descriptor deprecated

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

Deprecated: Use Proof.ProtoReflect.Descriptor instead.

func (*Proof) GetCompactName

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

func (*Proof) GetHash

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

func (*Proof) GetHashes

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

func (*Proof) GetProperty

func (m *Proof) GetProperty() isProof_Property

func (*Proof) GetReadableName

func (x *Proof) GetReadableName() string

func (*Proof) GetSalt

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

func (*Proof) GetSortedHashes

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

func (*Proof) GetValue

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

func (*Proof) ProtoMessage

func (*Proof) ProtoMessage()

func (*Proof) ProtoReflect added in v1.0.0

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

func (*Proof) Reset

func (x *Proof) Reset()

func (*Proof) String

func (x *Proof) String() string

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"`
	// contains filtered or unexported fields
}

func (*Salt) Descriptor deprecated

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

Deprecated: Use Salt.ProtoReflect.Descriptor instead.

func (*Salt) GetCompact

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

func (*Salt) GetValue

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

func (*Salt) ProtoMessage

func (*Salt) ProtoMessage()

func (*Salt) ProtoReflect added in v1.0.0

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

func (*Salt) Reset

func (x *Salt) Reset()

func (*Salt) String

func (x *Salt) String() string

Jump to

Keyboard shortcuts

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