decaf377_frostv1alpha1

package
v2.5.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthDecaf377Frost        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDecaf377Frost          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDecaf377Frost = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type DKGRound1Package

type DKGRound1Package struct {
	// A commitment to the polynomial for secret sharing.
	Commitment *VerifiableSecretSharingCommitment `protobuf:"bytes,1,opt,name=commitment,proto3" json:"commitment,omitempty"`
	// A proof of knowledge of the underlying secret being shared.
	ProofOfKnowledge []byte `protobuf:"bytes,2,opt,name=proof_of_knowledge,json=proofOfKnowledge,proto3" json:"proof_of_knowledge,omitempty"`
}

The public package sent in round 1 of the DKG protocol.

func (*DKGRound1Package) Descriptor

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

func (*DKGRound1Package) GetCommitment

func (*DKGRound1Package) GetProofOfKnowledge

func (m *DKGRound1Package) GetProofOfKnowledge() []byte

func (*DKGRound1Package) Marshal

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

func (*DKGRound1Package) MarshalTo

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

func (*DKGRound1Package) MarshalToSizedBuffer

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

func (*DKGRound1Package) ProtoMessage

func (*DKGRound1Package) ProtoMessage()

func (*DKGRound1Package) Reset

func (m *DKGRound1Package) Reset()

func (*DKGRound1Package) Size

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

func (*DKGRound1Package) String

func (m *DKGRound1Package) String() string

func (*DKGRound1Package) Unmarshal

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

func (*DKGRound1Package) XXX_DiscardUnknown

func (m *DKGRound1Package) XXX_DiscardUnknown()

func (*DKGRound1Package) XXX_Marshal

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

func (*DKGRound1Package) XXX_Merge

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

func (*DKGRound1Package) XXX_Size

func (m *DKGRound1Package) XXX_Size() int

func (*DKGRound1Package) XXX_Unmarshal

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

type DKGRound2Package

type DKGRound2Package struct {
	// This is the share we're sending to that participant.
	SigningShare *SigningShare `protobuf:"bytes,1,opt,name=signing_share,json=signingShare,proto3" json:"signing_share,omitempty"`
}

The per-participant package sent in round 2 of the DKG protocol.

func (*DKGRound2Package) Descriptor

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

func (*DKGRound2Package) GetSigningShare

func (m *DKGRound2Package) GetSigningShare() *SigningShare

func (*DKGRound2Package) Marshal

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

func (*DKGRound2Package) MarshalTo

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

func (*DKGRound2Package) MarshalToSizedBuffer

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

func (*DKGRound2Package) ProtoMessage

func (*DKGRound2Package) ProtoMessage()

func (*DKGRound2Package) Reset

func (m *DKGRound2Package) Reset()

func (*DKGRound2Package) Size

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

func (*DKGRound2Package) String

func (m *DKGRound2Package) String() string

func (*DKGRound2Package) Unmarshal

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

func (*DKGRound2Package) XXX_DiscardUnknown

func (m *DKGRound2Package) XXX_DiscardUnknown()

func (*DKGRound2Package) XXX_Marshal

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

func (*DKGRound2Package) XXX_Merge

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

func (*DKGRound2Package) XXX_Size

func (m *DKGRound2Package) XXX_Size() int

func (*DKGRound2Package) XXX_Unmarshal

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

type NonceCommitment

type NonceCommitment struct {
	// These bytes should be a valid group element.
	Element []byte `protobuf:"bytes,1,opt,name=element,proto3" json:"element,omitempty"`
}

Represents a commitment to a nonce value.

func (*NonceCommitment) Descriptor

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

func (*NonceCommitment) GetElement

func (m *NonceCommitment) GetElement() []byte

func (*NonceCommitment) Marshal

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

func (*NonceCommitment) MarshalTo

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

func (*NonceCommitment) MarshalToSizedBuffer

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

func (*NonceCommitment) ProtoMessage

func (*NonceCommitment) ProtoMessage()

func (*NonceCommitment) Reset

func (m *NonceCommitment) Reset()

func (*NonceCommitment) Size

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

func (*NonceCommitment) String

func (m *NonceCommitment) String() string

func (*NonceCommitment) Unmarshal

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

func (*NonceCommitment) XXX_DiscardUnknown

func (m *NonceCommitment) XXX_DiscardUnknown()

func (*NonceCommitment) XXX_Marshal

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

func (*NonceCommitment) XXX_Merge

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

func (*NonceCommitment) XXX_Size

func (m *NonceCommitment) XXX_Size() int

func (*NonceCommitment) XXX_Unmarshal

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

type SignatureShare

type SignatureShare struct {
	// These bytes should be a valid scalar.
	Scalar []byte `protobuf:"bytes,1,opt,name=scalar,proto3" json:"scalar,omitempty"`
}

A share of the final signature. These get aggregated to make the actual thing.

func (*SignatureShare) Descriptor

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

func (*SignatureShare) GetScalar

func (m *SignatureShare) GetScalar() []byte

func (*SignatureShare) Marshal

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

func (*SignatureShare) MarshalTo

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

func (*SignatureShare) MarshalToSizedBuffer

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

func (*SignatureShare) ProtoMessage

func (*SignatureShare) ProtoMessage()

func (*SignatureShare) Reset

func (m *SignatureShare) Reset()

func (*SignatureShare) Size

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

func (*SignatureShare) String

func (m *SignatureShare) String() string

func (*SignatureShare) Unmarshal

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

func (*SignatureShare) XXX_DiscardUnknown

func (m *SignatureShare) XXX_DiscardUnknown()

func (*SignatureShare) XXX_Marshal

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

func (*SignatureShare) XXX_Merge

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

func (*SignatureShare) XXX_Size

func (m *SignatureShare) XXX_Size() int

func (*SignatureShare) XXX_Unmarshal

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

type SigningCommitments

type SigningCommitments struct {
	// One nonce to hide them.
	Hiding *NonceCommitment `protobuf:"bytes,1,opt,name=hiding,proto3" json:"hiding,omitempty"`
	// Another to bind them.
	Binding *NonceCommitment `protobuf:"bytes,2,opt,name=binding,proto3" json:"binding,omitempty"`
}

Represents the commitments to nonces needed for signing.

func (*SigningCommitments) Descriptor

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

func (*SigningCommitments) GetBinding

func (m *SigningCommitments) GetBinding() *NonceCommitment

func (*SigningCommitments) GetHiding

func (m *SigningCommitments) GetHiding() *NonceCommitment

func (*SigningCommitments) Marshal

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

func (*SigningCommitments) MarshalTo

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

func (*SigningCommitments) MarshalToSizedBuffer

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

func (*SigningCommitments) ProtoMessage

func (*SigningCommitments) ProtoMessage()

func (*SigningCommitments) Reset

func (m *SigningCommitments) Reset()

func (*SigningCommitments) Size

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

func (*SigningCommitments) String

func (m *SigningCommitments) String() string

func (*SigningCommitments) Unmarshal

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

func (*SigningCommitments) XXX_DiscardUnknown

func (m *SigningCommitments) XXX_DiscardUnknown()

func (*SigningCommitments) XXX_Marshal

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

func (*SigningCommitments) XXX_Merge

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

func (*SigningCommitments) XXX_Size

func (m *SigningCommitments) XXX_Size() int

func (*SigningCommitments) XXX_Unmarshal

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

type SigningShare

type SigningShare struct {
	// These bytes should be a valid scalar.
	Scalar []byte `protobuf:"bytes,1,opt,name=scalar,proto3" json:"scalar,omitempty"`
}

A share of the final signing key.

func (*SigningShare) Descriptor

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

func (*SigningShare) GetScalar

func (m *SigningShare) GetScalar() []byte

func (*SigningShare) Marshal

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

func (*SigningShare) MarshalTo

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

func (*SigningShare) MarshalToSizedBuffer

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

func (*SigningShare) ProtoMessage

func (*SigningShare) ProtoMessage()

func (*SigningShare) Reset

func (m *SigningShare) Reset()

func (*SigningShare) Size

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

func (*SigningShare) String

func (m *SigningShare) String() string

func (*SigningShare) Unmarshal

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

func (*SigningShare) XXX_DiscardUnknown

func (m *SigningShare) XXX_DiscardUnknown()

func (*SigningShare) XXX_Marshal

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

func (*SigningShare) XXX_Merge

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

func (*SigningShare) XXX_Size

func (m *SigningShare) XXX_Size() int

func (*SigningShare) XXX_Unmarshal

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

type VerifiableSecretSharingCommitment

type VerifiableSecretSharingCommitment struct {
	// Each of these bytes should be the serialization of a group element.
	Elements [][]byte `protobuf:"bytes,1,rep,name=elements,proto3" json:"elements,omitempty"`
}

A commitment to a polynomial, as a list of group elements.

func (*VerifiableSecretSharingCommitment) Descriptor

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

func (*VerifiableSecretSharingCommitment) GetElements

func (m *VerifiableSecretSharingCommitment) GetElements() [][]byte

func (*VerifiableSecretSharingCommitment) Marshal

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

func (*VerifiableSecretSharingCommitment) MarshalTo

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

func (*VerifiableSecretSharingCommitment) MarshalToSizedBuffer

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

func (*VerifiableSecretSharingCommitment) ProtoMessage

func (*VerifiableSecretSharingCommitment) ProtoMessage()

func (*VerifiableSecretSharingCommitment) Reset

func (*VerifiableSecretSharingCommitment) Size

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

func (*VerifiableSecretSharingCommitment) String

func (*VerifiableSecretSharingCommitment) Unmarshal

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

func (*VerifiableSecretSharingCommitment) XXX_DiscardUnknown

func (m *VerifiableSecretSharingCommitment) XXX_DiscardUnknown()

func (*VerifiableSecretSharingCommitment) XXX_Marshal

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

func (*VerifiableSecretSharingCommitment) XXX_Merge

func (*VerifiableSecretSharingCommitment) XXX_Size

func (m *VerifiableSecretSharingCommitment) XXX_Size() int

func (*VerifiableSecretSharingCommitment) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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