tctv1

package
v8.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTct        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTct          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTct = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type MerklePathChunk

type MerklePathChunk struct {
	Sibling_1 []byte `protobuf:"bytes,1,opt,name=sibling_1,json=sibling1,proto3" json:"sibling_1,omitempty"`
	Sibling_2 []byte `protobuf:"bytes,2,opt,name=sibling_2,json=sibling2,proto3" json:"sibling_2,omitempty"`
	Sibling_3 []byte `protobuf:"bytes,3,opt,name=sibling_3,json=sibling3,proto3" json:"sibling_3,omitempty"`
}

A set of 3 sibling hashes in the auth path for some note commitment.

func (*MerklePathChunk) Descriptor

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

func (*MerklePathChunk) GetSibling_1

func (m *MerklePathChunk) GetSibling_1() []byte

func (*MerklePathChunk) GetSibling_2

func (m *MerklePathChunk) GetSibling_2() []byte

func (*MerklePathChunk) GetSibling_3

func (m *MerklePathChunk) GetSibling_3() []byte

func (*MerklePathChunk) Marshal

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

func (*MerklePathChunk) MarshalTo

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

func (*MerklePathChunk) MarshalToSizedBuffer

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

func (*MerklePathChunk) ProtoMessage

func (*MerklePathChunk) ProtoMessage()

func (*MerklePathChunk) Reset

func (m *MerklePathChunk) Reset()

func (*MerklePathChunk) Size

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

func (*MerklePathChunk) String

func (m *MerklePathChunk) String() string

func (*MerklePathChunk) Unmarshal

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

func (*MerklePathChunk) XXX_DiscardUnknown

func (m *MerklePathChunk) XXX_DiscardUnknown()

func (*MerklePathChunk) XXX_Marshal

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

func (*MerklePathChunk) XXX_Merge

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

func (*MerklePathChunk) XXX_Size

func (m *MerklePathChunk) XXX_Size() int

func (*MerklePathChunk) XXX_Unmarshal

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

type MerkleRoot

type MerkleRoot struct {
	Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"`
}

func (*MerkleRoot) Descriptor

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

func (*MerkleRoot) GetInner

func (m *MerkleRoot) GetInner() []byte

func (*MerkleRoot) Marshal

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

func (*MerkleRoot) MarshalTo

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

func (*MerkleRoot) MarshalToSizedBuffer

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

func (*MerkleRoot) ProtoMessage

func (*MerkleRoot) ProtoMessage()

func (*MerkleRoot) Reset

func (m *MerkleRoot) Reset()

func (*MerkleRoot) Size

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

func (*MerkleRoot) String

func (m *MerkleRoot) String() string

func (*MerkleRoot) Unmarshal

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

func (*MerkleRoot) XXX_DiscardUnknown

func (m *MerkleRoot) XXX_DiscardUnknown()

func (*MerkleRoot) XXX_Marshal

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

func (*MerkleRoot) XXX_Merge

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

func (*MerkleRoot) XXX_Size

func (m *MerkleRoot) XXX_Size() int

func (*MerkleRoot) XXX_Unmarshal

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

type StateCommitment

type StateCommitment struct {
	Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"`
}

func (*StateCommitment) Descriptor

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

func (*StateCommitment) GetInner

func (m *StateCommitment) GetInner() []byte

func (*StateCommitment) Marshal

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

func (*StateCommitment) MarshalTo

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

func (*StateCommitment) MarshalToSizedBuffer

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

func (*StateCommitment) ProtoMessage

func (*StateCommitment) ProtoMessage()

func (*StateCommitment) Reset

func (m *StateCommitment) Reset()

func (*StateCommitment) Size

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

func (*StateCommitment) String

func (m *StateCommitment) String() string

func (*StateCommitment) Unmarshal

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

func (*StateCommitment) XXX_DiscardUnknown

func (m *StateCommitment) XXX_DiscardUnknown()

func (*StateCommitment) XXX_Marshal

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

func (*StateCommitment) XXX_Merge

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

func (*StateCommitment) XXX_Size

func (m *StateCommitment) XXX_Size() int

func (*StateCommitment) XXX_Unmarshal

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

type StateCommitmentProof

type StateCommitmentProof struct {
	NoteCommitment *StateCommitment   `protobuf:"bytes,1,opt,name=note_commitment,json=noteCommitment,proto3" json:"note_commitment,omitempty"`
	Position       uint64             `protobuf:"varint,2,opt,name=position,proto3" json:"position,omitempty"`
	AuthPath       []*MerklePathChunk `protobuf:"bytes,3,rep,name=auth_path,json=authPath,proto3" json:"auth_path,omitempty"`
}

An authentication path from a state commitment to the root of the state commitment tree.

func (*StateCommitmentProof) Descriptor

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

func (*StateCommitmentProof) GetAuthPath

func (m *StateCommitmentProof) GetAuthPath() []*MerklePathChunk

func (*StateCommitmentProof) GetNoteCommitment

func (m *StateCommitmentProof) GetNoteCommitment() *StateCommitment

func (*StateCommitmentProof) GetPosition

func (m *StateCommitmentProof) GetPosition() uint64

func (*StateCommitmentProof) Marshal

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

func (*StateCommitmentProof) MarshalTo

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

func (*StateCommitmentProof) MarshalToSizedBuffer

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

func (*StateCommitmentProof) ProtoMessage

func (*StateCommitmentProof) ProtoMessage()

func (*StateCommitmentProof) Reset

func (m *StateCommitmentProof) Reset()

func (*StateCommitmentProof) Size

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

func (*StateCommitmentProof) String

func (m *StateCommitmentProof) String() string

func (*StateCommitmentProof) Unmarshal

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

func (*StateCommitmentProof) XXX_DiscardUnknown

func (m *StateCommitmentProof) XXX_DiscardUnknown()

func (*StateCommitmentProof) XXX_Marshal

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

func (*StateCommitmentProof) XXX_Merge

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

func (*StateCommitmentProof) XXX_Size

func (m *StateCommitmentProof) XXX_Size() int

func (*StateCommitmentProof) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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