thresholdv1alpha1

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthThreshold        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowThreshold          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupThreshold = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type CoordinatorRound1

type CoordinatorRound1 struct {
	// The plan that the coordinator would like the followers to sign.
	Plan *v1alpha1.TransactionPlan `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan,omitempty"`
}

The message the coordinator sends in round 1 of the signing protocol.

func (*CoordinatorRound1) Descriptor

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

func (*CoordinatorRound1) GetPlan

func (*CoordinatorRound1) Marshal

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

func (*CoordinatorRound1) MarshalTo

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

func (*CoordinatorRound1) MarshalToSizedBuffer

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

func (*CoordinatorRound1) ProtoMessage

func (*CoordinatorRound1) ProtoMessage()

func (*CoordinatorRound1) Reset

func (m *CoordinatorRound1) Reset()

func (*CoordinatorRound1) Size

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

func (*CoordinatorRound1) String

func (m *CoordinatorRound1) String() string

func (*CoordinatorRound1) Unmarshal

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

func (*CoordinatorRound1) XXX_DiscardUnknown

func (m *CoordinatorRound1) XXX_DiscardUnknown()

func (*CoordinatorRound1) XXX_Marshal

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

func (*CoordinatorRound1) XXX_Merge

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

func (*CoordinatorRound1) XXX_Size

func (m *CoordinatorRound1) XXX_Size() int

func (*CoordinatorRound1) XXX_Unmarshal

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

type CoordinatorRound2

type CoordinatorRound2 struct {
	// The underlying signing packages being sent to the followers, for each signature.
	SigningPackages []*CoordinatorRound2_PartialSigningPackage `protobuf:"bytes,1,rep,name=signing_packages,json=signingPackages,proto3" json:"signing_packages,omitempty"`
}

The message the coordinator sends in round 2 of the signing protocol.

func (*CoordinatorRound2) Descriptor

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

func (*CoordinatorRound2) GetSigningPackages

func (*CoordinatorRound2) Marshal

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

func (*CoordinatorRound2) MarshalTo

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

func (*CoordinatorRound2) MarshalToSizedBuffer

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

func (*CoordinatorRound2) ProtoMessage

func (*CoordinatorRound2) ProtoMessage()

func (*CoordinatorRound2) Reset

func (m *CoordinatorRound2) Reset()

func (*CoordinatorRound2) Size

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

func (*CoordinatorRound2) String

func (m *CoordinatorRound2) String() string

func (*CoordinatorRound2) Unmarshal

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

func (*CoordinatorRound2) XXX_DiscardUnknown

func (m *CoordinatorRound2) XXX_DiscardUnknown()

func (*CoordinatorRound2) XXX_Marshal

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

func (*CoordinatorRound2) XXX_Merge

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

func (*CoordinatorRound2) XXX_Size

func (m *CoordinatorRound2) XXX_Size() int

func (*CoordinatorRound2) XXX_Unmarshal

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

type CoordinatorRound2_IdentifiedCommitments

type CoordinatorRound2_IdentifiedCommitments struct {
	// The serialization of a FROST identifier.
	Identifier []byte `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	// The commitments this person has produced for this round of signing.
	Commitments *v1alpha11.SigningCommitments `protobuf:"bytes,2,opt,name=commitments,proto3" json:"commitments,omitempty"`
}

A commitment along with a FROST identifier.

func (*CoordinatorRound2_IdentifiedCommitments) Descriptor

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

func (*CoordinatorRound2_IdentifiedCommitments) GetCommitments

func (*CoordinatorRound2_IdentifiedCommitments) GetIdentifier

func (m *CoordinatorRound2_IdentifiedCommitments) GetIdentifier() []byte

func (*CoordinatorRound2_IdentifiedCommitments) Marshal

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

func (*CoordinatorRound2_IdentifiedCommitments) MarshalTo

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

func (*CoordinatorRound2_IdentifiedCommitments) MarshalToSizedBuffer

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

func (*CoordinatorRound2_IdentifiedCommitments) ProtoMessage

func (*CoordinatorRound2_IdentifiedCommitments) Reset

func (*CoordinatorRound2_IdentifiedCommitments) Size

func (*CoordinatorRound2_IdentifiedCommitments) String

func (*CoordinatorRound2_IdentifiedCommitments) Unmarshal

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

func (*CoordinatorRound2_IdentifiedCommitments) XXX_DiscardUnknown

func (m *CoordinatorRound2_IdentifiedCommitments) XXX_DiscardUnknown()

func (*CoordinatorRound2_IdentifiedCommitments) XXX_Marshal

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

func (*CoordinatorRound2_IdentifiedCommitments) XXX_Merge

func (*CoordinatorRound2_IdentifiedCommitments) XXX_Size

func (*CoordinatorRound2_IdentifiedCommitments) XXX_Unmarshal

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

type CoordinatorRound2_PartialSigningPackage

type CoordinatorRound2_PartialSigningPackage struct {
	AllCommitments []*CoordinatorRound2_IdentifiedCommitments `protobuf:"bytes,1,rep,name=all_commitments,json=allCommitments,proto3" json:"all_commitments,omitempty"`
}

A FROST signing package without a message.

We structure things this way because the message is derived from the transaction plan. FROST expects the signing package to include the identified commitments *and* the message, but we have no need to include the message.

func (*CoordinatorRound2_PartialSigningPackage) Descriptor

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

func (*CoordinatorRound2_PartialSigningPackage) GetAllCommitments

func (*CoordinatorRound2_PartialSigningPackage) Marshal

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

func (*CoordinatorRound2_PartialSigningPackage) MarshalTo

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

func (*CoordinatorRound2_PartialSigningPackage) MarshalToSizedBuffer

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

func (*CoordinatorRound2_PartialSigningPackage) ProtoMessage

func (*CoordinatorRound2_PartialSigningPackage) Reset

func (*CoordinatorRound2_PartialSigningPackage) Size

func (*CoordinatorRound2_PartialSigningPackage) String

func (*CoordinatorRound2_PartialSigningPackage) Unmarshal

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

func (*CoordinatorRound2_PartialSigningPackage) XXX_DiscardUnknown

func (m *CoordinatorRound2_PartialSigningPackage) XXX_DiscardUnknown()

func (*CoordinatorRound2_PartialSigningPackage) XXX_Marshal

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

func (*CoordinatorRound2_PartialSigningPackage) XXX_Merge

func (*CoordinatorRound2_PartialSigningPackage) XXX_Size

func (*CoordinatorRound2_PartialSigningPackage) XXX_Unmarshal

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

type DKGRound1

type DKGRound1 struct {
	// The package we're sending to other people
	Pkg *v1alpha11.DKGRound1Package `protobuf:"bytes,1,opt,name=pkg,proto3" json:"pkg,omitempty"`
	// A commitment to a share of the nullifier-deriving key
	NullifierCommitment []byte `protobuf:"bytes,2,opt,name=nullifier_commitment,json=nullifierCommitment,proto3" json:"nullifier_commitment,omitempty"`
	// An encryption key for the second round.
	Epk []byte `protobuf:"bytes,3,opt,name=epk,proto3" json:"epk,omitempty"`
	// A verification key establishing an identity for the sender of this message.
	Vk []byte `protobuf:"bytes,4,opt,name=vk,proto3" json:"vk,omitempty"`
}

The first message we broadcast in the DKG protocol.

func (*DKGRound1) Descriptor

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

func (*DKGRound1) GetEpk

func (m *DKGRound1) GetEpk() []byte

func (*DKGRound1) GetNullifierCommitment

func (m *DKGRound1) GetNullifierCommitment() []byte

func (*DKGRound1) GetPkg

func (m *DKGRound1) GetPkg() *v1alpha11.DKGRound1Package

func (*DKGRound1) GetVk

func (m *DKGRound1) GetVk() []byte

func (*DKGRound1) Marshal

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

func (*DKGRound1) MarshalTo

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

func (*DKGRound1) MarshalToSizedBuffer

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

func (*DKGRound1) ProtoMessage

func (*DKGRound1) ProtoMessage()

func (*DKGRound1) Reset

func (m *DKGRound1) Reset()

func (*DKGRound1) Size

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

func (*DKGRound1) String

func (m *DKGRound1) String() string

func (*DKGRound1) Unmarshal

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

func (*DKGRound1) XXX_DiscardUnknown

func (m *DKGRound1) XXX_DiscardUnknown()

func (*DKGRound1) XXX_Marshal

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

func (*DKGRound1) XXX_Merge

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

func (*DKGRound1) XXX_Size

func (m *DKGRound1) XXX_Size() int

func (*DKGRound1) XXX_Unmarshal

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

type DKGRound2

type DKGRound2 struct {
	Inner *DKGRound2_Inner `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"`
	// The verification key identifying the sender.
	Vk []byte `protobuf:"bytes,2,opt,name=vk,proto3" json:"vk,omitempty"`
	// A signature over the proto-encoded inner message.
	Sig []byte `protobuf:"bytes,3,opt,name=sig,proto3" json:"sig,omitempty"`
}

The second message we broadcast in the DKG protocol.

func (*DKGRound2) Descriptor

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

func (*DKGRound2) GetInner

func (m *DKGRound2) GetInner() *DKGRound2_Inner

func (*DKGRound2) GetSig

func (m *DKGRound2) GetSig() []byte

func (*DKGRound2) GetVk

func (m *DKGRound2) GetVk() []byte

func (*DKGRound2) Marshal

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

func (*DKGRound2) MarshalTo

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

func (*DKGRound2) MarshalToSizedBuffer

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

func (*DKGRound2) ProtoMessage

func (*DKGRound2) ProtoMessage()

func (*DKGRound2) Reset

func (m *DKGRound2) Reset()

func (*DKGRound2) Size

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

func (*DKGRound2) String

func (m *DKGRound2) String() string

func (*DKGRound2) Unmarshal

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

func (*DKGRound2) XXX_DiscardUnknown

func (m *DKGRound2) XXX_DiscardUnknown()

func (*DKGRound2) XXX_Marshal

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

func (*DKGRound2) XXX_Merge

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

func (*DKGRound2) XXX_Size

func (m *DKGRound2) XXX_Size() int

func (*DKGRound2) XXX_Unmarshal

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

type DKGRound2_Inner

type DKGRound2_Inner struct {
	// Encrypted packages for each recipient.
	EncryptedPackages []*DKGRound2_TargetedPackage `protobuf:"bytes,1,rep,name=encrypted_packages,json=encryptedPackages,proto3" json:"encrypted_packages,omitempty"`
	// An opening of the share of the nullifier-deriving key commitment
	Nullifier []byte `protobuf:"bytes,2,opt,name=nullifier,proto3" json:"nullifier,omitempty"`
}

An inner message that will be signed.

func (*DKGRound2_Inner) Descriptor

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

func (*DKGRound2_Inner) GetEncryptedPackages

func (m *DKGRound2_Inner) GetEncryptedPackages() []*DKGRound2_TargetedPackage

func (*DKGRound2_Inner) GetNullifier

func (m *DKGRound2_Inner) GetNullifier() []byte

func (*DKGRound2_Inner) Marshal

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

func (*DKGRound2_Inner) MarshalTo

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

func (*DKGRound2_Inner) MarshalToSizedBuffer

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

func (*DKGRound2_Inner) ProtoMessage

func (*DKGRound2_Inner) ProtoMessage()

func (*DKGRound2_Inner) Reset

func (m *DKGRound2_Inner) Reset()

func (*DKGRound2_Inner) Size

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

func (*DKGRound2_Inner) String

func (m *DKGRound2_Inner) String() string

func (*DKGRound2_Inner) Unmarshal

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

func (*DKGRound2_Inner) XXX_DiscardUnknown

func (m *DKGRound2_Inner) XXX_DiscardUnknown()

func (*DKGRound2_Inner) XXX_Marshal

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

func (*DKGRound2_Inner) XXX_Merge

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

func (*DKGRound2_Inner) XXX_Size

func (m *DKGRound2_Inner) XXX_Size() int

func (*DKGRound2_Inner) XXX_Unmarshal

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

type DKGRound2_TargetedPackage

type DKGRound2_TargetedPackage struct {
	// A verification key identifying the recipient.
	Vk []byte `protobuf:"bytes,1,opt,name=vk,proto3" json:"vk,omitempty"`
	// The ciphertext of an encrypted frost package for round 2.
	EncryptedPackage []byte `protobuf:"bytes,2,opt,name=encrypted_package,json=encryptedPackage,proto3" json:"encrypted_package,omitempty"`
}

A round2 package, encrypted, along with an identifier for the recipient.

func (*DKGRound2_TargetedPackage) Descriptor

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

func (*DKGRound2_TargetedPackage) GetEncryptedPackage

func (m *DKGRound2_TargetedPackage) GetEncryptedPackage() []byte

func (*DKGRound2_TargetedPackage) GetVk

func (m *DKGRound2_TargetedPackage) GetVk() []byte

func (*DKGRound2_TargetedPackage) Marshal

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

func (*DKGRound2_TargetedPackage) MarshalTo

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

func (*DKGRound2_TargetedPackage) MarshalToSizedBuffer

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

func (*DKGRound2_TargetedPackage) ProtoMessage

func (*DKGRound2_TargetedPackage) ProtoMessage()

func (*DKGRound2_TargetedPackage) Reset

func (m *DKGRound2_TargetedPackage) Reset()

func (*DKGRound2_TargetedPackage) Size

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

func (*DKGRound2_TargetedPackage) String

func (m *DKGRound2_TargetedPackage) String() string

func (*DKGRound2_TargetedPackage) Unmarshal

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

func (*DKGRound2_TargetedPackage) XXX_DiscardUnknown

func (m *DKGRound2_TargetedPackage) XXX_DiscardUnknown()

func (*DKGRound2_TargetedPackage) XXX_Marshal

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

func (*DKGRound2_TargetedPackage) XXX_Merge

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

func (*DKGRound2_TargetedPackage) XXX_Size

func (m *DKGRound2_TargetedPackage) XXX_Size() int

func (*DKGRound2_TargetedPackage) XXX_Unmarshal

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

type FollowerRound1

type FollowerRound1 struct {
	Inner *FollowerRound1_Inner `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"`
	// The verification key identifying the sender.
	Pk *VerificationKey `protobuf:"bytes,2,opt,name=pk,proto3" json:"pk,omitempty"`
	// A signature over the proto-encoded bytes of inner.
	Sig *Signature `protobuf:"bytes,3,opt,name=sig,proto3" json:"sig,omitempty"`
}

The first message the followers send back to the coordinator when signing.

func (*FollowerRound1) Descriptor

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

func (*FollowerRound1) GetInner

func (m *FollowerRound1) GetInner() *FollowerRound1_Inner

func (*FollowerRound1) GetPk

func (m *FollowerRound1) GetPk() *VerificationKey

func (*FollowerRound1) GetSig

func (m *FollowerRound1) GetSig() *Signature

func (*FollowerRound1) Marshal

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

func (*FollowerRound1) MarshalTo

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

func (*FollowerRound1) MarshalToSizedBuffer

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

func (*FollowerRound1) ProtoMessage

func (*FollowerRound1) ProtoMessage()

func (*FollowerRound1) Reset

func (m *FollowerRound1) Reset()

func (*FollowerRound1) Size

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

func (*FollowerRound1) String

func (m *FollowerRound1) String() string

func (*FollowerRound1) Unmarshal

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

func (*FollowerRound1) XXX_DiscardUnknown

func (m *FollowerRound1) XXX_DiscardUnknown()

func (*FollowerRound1) XXX_Marshal

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

func (*FollowerRound1) XXX_Merge

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

func (*FollowerRound1) XXX_Size

func (m *FollowerRound1) XXX_Size() int

func (*FollowerRound1) XXX_Unmarshal

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

type FollowerRound1_Inner

type FollowerRound1_Inner struct {
	// One signing commitment pair for each signature requested by the plan, in order.
	Commitments []*v1alpha11.SigningCommitments `protobuf:"bytes,1,rep,name=commitments,proto3" json:"commitments,omitempty"`
}

The inner message that will be signed by the follower.

func (*FollowerRound1_Inner) Descriptor

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

func (*FollowerRound1_Inner) GetCommitments

func (m *FollowerRound1_Inner) GetCommitments() []*v1alpha11.SigningCommitments

func (*FollowerRound1_Inner) Marshal

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

func (*FollowerRound1_Inner) MarshalTo

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

func (*FollowerRound1_Inner) MarshalToSizedBuffer

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

func (*FollowerRound1_Inner) ProtoMessage

func (*FollowerRound1_Inner) ProtoMessage()

func (*FollowerRound1_Inner) Reset

func (m *FollowerRound1_Inner) Reset()

func (*FollowerRound1_Inner) Size

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

func (*FollowerRound1_Inner) String

func (m *FollowerRound1_Inner) String() string

func (*FollowerRound1_Inner) Unmarshal

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

func (*FollowerRound1_Inner) XXX_DiscardUnknown

func (m *FollowerRound1_Inner) XXX_DiscardUnknown()

func (*FollowerRound1_Inner) XXX_Marshal

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

func (*FollowerRound1_Inner) XXX_Merge

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

func (*FollowerRound1_Inner) XXX_Size

func (m *FollowerRound1_Inner) XXX_Size() int

func (*FollowerRound1_Inner) XXX_Unmarshal

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

type FollowerRound2

type FollowerRound2 struct {
	Inner *FollowerRound2_Inner `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"`
	// The verification key identifying the sender.
	Pk *VerificationKey `protobuf:"bytes,2,opt,name=pk,proto3" json:"pk,omitempty"`
	// A signature over the proto-encoded bytes of inner.
	Sig *Signature `protobuf:"bytes,3,opt,name=sig,proto3" json:"sig,omitempty"`
}

The second message the followers send back to the coordinator when signing.

func (*FollowerRound2) Descriptor

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

func (*FollowerRound2) GetInner

func (m *FollowerRound2) GetInner() *FollowerRound2_Inner

func (*FollowerRound2) GetPk

func (m *FollowerRound2) GetPk() *VerificationKey

func (*FollowerRound2) GetSig

func (m *FollowerRound2) GetSig() *Signature

func (*FollowerRound2) Marshal

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

func (*FollowerRound2) MarshalTo

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

func (*FollowerRound2) MarshalToSizedBuffer

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

func (*FollowerRound2) ProtoMessage

func (*FollowerRound2) ProtoMessage()

func (*FollowerRound2) Reset

func (m *FollowerRound2) Reset()

func (*FollowerRound2) Size

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

func (*FollowerRound2) String

func (m *FollowerRound2) String() string

func (*FollowerRound2) Unmarshal

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

func (*FollowerRound2) XXX_DiscardUnknown

func (m *FollowerRound2) XXX_DiscardUnknown()

func (*FollowerRound2) XXX_Marshal

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

func (*FollowerRound2) XXX_Merge

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

func (*FollowerRound2) XXX_Size

func (m *FollowerRound2) XXX_Size() int

func (*FollowerRound2) XXX_Unmarshal

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

type FollowerRound2_Inner

type FollowerRound2_Inner struct {
	// One share for each signature requested by the plan, in order.
	Shares []*v1alpha11.SignatureShare `protobuf:"bytes,1,rep,name=shares,proto3" json:"shares,omitempty"`
}

The inner message that will be signed by the follower.

func (*FollowerRound2_Inner) Descriptor

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

func (*FollowerRound2_Inner) GetShares

func (m *FollowerRound2_Inner) GetShares() []*v1alpha11.SignatureShare

func (*FollowerRound2_Inner) Marshal

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

func (*FollowerRound2_Inner) MarshalTo

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

func (*FollowerRound2_Inner) MarshalToSizedBuffer

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

func (*FollowerRound2_Inner) ProtoMessage

func (*FollowerRound2_Inner) ProtoMessage()

func (*FollowerRound2_Inner) Reset

func (m *FollowerRound2_Inner) Reset()

func (*FollowerRound2_Inner) Size

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

func (*FollowerRound2_Inner) String

func (m *FollowerRound2_Inner) String() string

func (*FollowerRound2_Inner) Unmarshal

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

func (*FollowerRound2_Inner) XXX_DiscardUnknown

func (m *FollowerRound2_Inner) XXX_DiscardUnknown()

func (*FollowerRound2_Inner) XXX_Marshal

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

func (*FollowerRound2_Inner) XXX_Merge

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

func (*FollowerRound2_Inner) XXX_Size

func (m *FollowerRound2_Inner) XXX_Size() int

func (*FollowerRound2_Inner) XXX_Unmarshal

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

type Signature

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

A signature proving that a message was created by the owner of a verification key.

func (*Signature) Descriptor

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

func (*Signature) GetInner

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

func (*Signature) Marshal

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

func (*Signature) MarshalTo

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

func (*Signature) MarshalToSizedBuffer

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

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) Reset

func (m *Signature) Reset()

func (*Signature) Size

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

func (*Signature) String

func (m *Signature) String() string

func (*Signature) Unmarshal

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

func (*Signature) XXX_DiscardUnknown

func (m *Signature) XXX_DiscardUnknown()

func (*Signature) XXX_Marshal

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

func (*Signature) XXX_Merge

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

func (*Signature) XXX_Size

func (m *Signature) XXX_Size() int

func (*Signature) XXX_Unmarshal

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

type VerificationKey

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

A key one can use to verify signatures.

This key can also serve as a unique identifier for users.

func (*VerificationKey) Descriptor

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

func (*VerificationKey) GetInner

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

func (*VerificationKey) Marshal

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

func (*VerificationKey) MarshalTo

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

func (*VerificationKey) MarshalToSizedBuffer

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

func (*VerificationKey) ProtoMessage

func (*VerificationKey) ProtoMessage()

func (*VerificationKey) Reset

func (m *VerificationKey) Reset()

func (*VerificationKey) Size

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

func (*VerificationKey) String

func (m *VerificationKey) String() string

func (*VerificationKey) Unmarshal

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

func (*VerificationKey) XXX_DiscardUnknown

func (m *VerificationKey) XXX_DiscardUnknown()

func (*VerificationKey) XXX_Marshal

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

func (*VerificationKey) XXX_Merge

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

func (*VerificationKey) XXX_Size

func (m *VerificationKey) XXX_Size() int

func (*VerificationKey) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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