Documentation
¶
Index ¶
- Constants
- Variables
- type AuxiliaryInfoKeyRefeshErrorMessage
- func (*AuxiliaryInfoKeyRefeshErrorMessage) Descriptor() ([]byte, []int)deprecated
- func (x *AuxiliaryInfoKeyRefeshErrorMessage) GetCiphertext() []byte
- func (x *AuxiliaryInfoKeyRefeshErrorMessage) GetMu() []byte
- func (x *AuxiliaryInfoKeyRefeshErrorMessage) GetPlaintext() []byte
- func (*AuxiliaryInfoKeyRefeshErrorMessage) ProtoMessage()
- func (x *AuxiliaryInfoKeyRefeshErrorMessage) ProtoReflect() protoreflect.Message
- func (x *AuxiliaryInfoKeyRefeshErrorMessage) Reset()
- func (x *AuxiliaryInfoKeyRefeshErrorMessage) String() string
- type HashMsg
- func (*HashMsg) Descriptor() ([]byte, []int)deprecated
- func (x *HashMsg) GetA() map[string]*ecpointgrouplaw.EcPointMessage
- func (x *HashMsg) GetB() *ecpointgrouplaw.EcPointMessage
- func (x *HashMsg) GetBk() []byte
- func (x *HashMsg) GetPedPar() *paillier.RingPederssenParameterMessage
- func (x *HashMsg) GetPointCommitment() *commitment.PointCommitmentMessage
- func (x *HashMsg) GetRho() []byte
- func (x *HashMsg) GetSsid() []byte
- func (x *HashMsg) GetU() []byte
- func (x *HashMsg) GetY() *ecpointgrouplaw.EcPointMessage
- func (*HashMsg) ProtoMessage()
- func (x *HashMsg) ProtoReflect() protoreflect.Message
- func (x *HashMsg) Reset()
- func (x *HashMsg) String() string
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (m *Message) EchoHash() ([]byte, error)
- func (m *Message) GetBody() isMessage_Body
- func (m *Message) GetEchoMessage() types.Message
- func (x *Message) GetId() string
- func (m *Message) GetMessageType() types.MessageType
- func (x *Message) GetRound1() *Round1Msg
- func (x *Message) GetRound2() *Round2Msg
- func (x *Message) GetRound3() *Round3Msg
- func (x *Message) GetType() Type
- func (m *Message) IsValid() bool
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type Message_Round1
- type Message_Round2
- type Message_Round3
- type Refresh
- type Result
- type Round1Msg
- type Round2Msg
- type Round3Msg
- func (*Round3Msg) Descriptor() ([]byte, []int)deprecated
- func (x *Round3Msg) GetEncshare() []byte
- func (x *Round3Msg) GetFacProof() *paillier.NoSmallFactorMessage
- func (x *Round3Msg) GetModProof() *paillier.PaillierBlumMessage
- func (x *Round3Msg) GetShareschnorrProof() *zkproof.SchnorrProofMessage
- func (x *Round3Msg) GetYschnorrProof() *zkproof.SchnorrProofMessage
- func (*Round3Msg) ProtoMessage()
- func (x *Round3Msg) ProtoReflect() protoreflect.Message
- func (x *Round3Msg) Reset()
- func (x *Round3Msg) String() string
- type Type
Constants ¶
View Source
const (
BYTELENGTHKAPPA = 32
)
View Source
const (
SAFEPUBKEYLENGTH = 2048
)
Variables ¶
View Source
var ( Type_name = map[int32]string{ 0: "Round1", 1: "Round2", 2: "Round3", } Type_value = map[string]int32{ "Round1": 0, "Round2": 1, "Round3": 2, } )
Enum value maps for Type.
View Source
var ( // ErrSmallPublicKey is returned if the public key is small. ErrSmallPublicKey = errors.New("small public key") // ErrTrivialPoint is returned if the the point is the identity point. ErrTrivialPoint = errors.New("the identity point") )
View Source
var ( // ErrDifferentPoint is returned if the two points are different. ErrDifferentPoint = errors.New("the two points are different") )
View Source
var (
ErrNotEnoughRanks = errors.New("not enough ranks")
)
View Source
var File_github_com_getamis_alice_crypto_tss_ecdsa_cggmp_refresh_message_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AuxiliaryInfoKeyRefeshErrorMessage ¶
type AuxiliaryInfoKeyRefeshErrorMessage struct { Ciphertext []byte `protobuf:"bytes,1,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"` Plaintext []byte `protobuf:"bytes,2,opt,name=plaintext,proto3" json:"plaintext,omitempty"` Mu []byte `protobuf:"bytes,3,opt,name=mu,proto3" json:"mu,omitempty"` // contains filtered or unexported fields }
func (*AuxiliaryInfoKeyRefeshErrorMessage) Descriptor
deprecated
func (*AuxiliaryInfoKeyRefeshErrorMessage) Descriptor() ([]byte, []int)
Deprecated: Use AuxiliaryInfoKeyRefeshErrorMessage.ProtoReflect.Descriptor instead.
func (*AuxiliaryInfoKeyRefeshErrorMessage) GetCiphertext ¶
func (x *AuxiliaryInfoKeyRefeshErrorMessage) GetCiphertext() []byte
func (*AuxiliaryInfoKeyRefeshErrorMessage) GetMu ¶
func (x *AuxiliaryInfoKeyRefeshErrorMessage) GetMu() []byte
func (*AuxiliaryInfoKeyRefeshErrorMessage) GetPlaintext ¶
func (x *AuxiliaryInfoKeyRefeshErrorMessage) GetPlaintext() []byte
func (*AuxiliaryInfoKeyRefeshErrorMessage) ProtoMessage ¶
func (*AuxiliaryInfoKeyRefeshErrorMessage) ProtoMessage()
func (*AuxiliaryInfoKeyRefeshErrorMessage) ProtoReflect ¶
func (x *AuxiliaryInfoKeyRefeshErrorMessage) ProtoReflect() protoreflect.Message
func (*AuxiliaryInfoKeyRefeshErrorMessage) Reset ¶
func (x *AuxiliaryInfoKeyRefeshErrorMessage) Reset()
func (*AuxiliaryInfoKeyRefeshErrorMessage) String ¶
func (x *AuxiliaryInfoKeyRefeshErrorMessage) String() string
type HashMsg ¶
type HashMsg struct { PointCommitment *commitment.PointCommitmentMessage `protobuf:"bytes,1,opt,name=pointCommitment,proto3" json:"pointCommitment,omitempty"` Y *ecpointgrouplaw.EcPointMessage `protobuf:"bytes,2,opt,name=Y,proto3" json:"Y,omitempty"` PedPar *paillier.RingPederssenParameterMessage `protobuf:"bytes,3,opt,name=pedPar,proto3" json:"pedPar,omitempty"` Rho []byte `protobuf:"bytes,4,opt,name=rho,proto3" json:"rho,omitempty"` U []byte `protobuf:"bytes,5,opt,name=u,proto3" json:"u,omitempty"` Ssid []byte `protobuf:"bytes,6,opt,name=ssid,proto3" json:"ssid,omitempty"` Bk []byte `protobuf:"bytes,7,opt,name=bk,proto3" json:"bk,omitempty"` A map[string]*ecpointgrouplaw.EcPointMessage `` /* 143-byte string literal not displayed */ B *ecpointgrouplaw.EcPointMessage `protobuf:"bytes,9,opt,name=B,proto3" json:"B,omitempty"` // contains filtered or unexported fields }
func (*HashMsg) Descriptor
deprecated
func (*HashMsg) GetA ¶
func (x *HashMsg) GetA() map[string]*ecpointgrouplaw.EcPointMessage
func (*HashMsg) GetB ¶
func (x *HashMsg) GetB() *ecpointgrouplaw.EcPointMessage
func (*HashMsg) GetPedPar ¶
func (x *HashMsg) GetPedPar() *paillier.RingPederssenParameterMessage
func (*HashMsg) GetPointCommitment ¶
func (x *HashMsg) GetPointCommitment() *commitment.PointCommitmentMessage
func (*HashMsg) GetY ¶
func (x *HashMsg) GetY() *ecpointgrouplaw.EcPointMessage
func (*HashMsg) ProtoMessage ¶
func (*HashMsg) ProtoMessage()
func (*HashMsg) ProtoReflect ¶
func (x *HashMsg) ProtoReflect() protoreflect.Message
type Message ¶
type Message struct { Type Type `protobuf:"varint,1,opt,name=type,proto3,enum=getamis.alice.crypto.tss.ecdsa.cggmp.refresh.Type" json:"type,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // Types that are assignable to Body: // *Message_Round1 // *Message_Round2 // *Message_Round3 Body isMessage_Body `protobuf_oneof:"body"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetEchoMessage ¶
func (*Message) GetMessageType ¶
func (m *Message) GetMessageType() types.MessageType
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type Message_Round1 ¶
type Message_Round1 struct {
Round1 *Round1Msg `protobuf:"bytes,4,opt,name=round1,proto3,oneof"`
}
type Message_Round2 ¶
type Message_Round2 struct {
Round2 *Round2Msg `protobuf:"bytes,5,opt,name=round2,proto3,oneof"`
}
type Message_Round3 ¶
type Message_Round3 struct {
Round3 *Round3Msg `protobuf:"bytes,6,opt,name=round3,proto3,oneof"`
}
type Refresh ¶
type Refresh struct { types.MessageMain // contains filtered or unexported fields }
func NewRefresh ¶
func NewRefresh(oldShare *big.Int, pubKey *ecpointgrouplaw.ECPoint, peerManager types.PeerManager, threshold uint32, partialPubKey map[string]*ecpointgrouplaw.ECPoint, bks map[string]*birkhoffinterpolation.BkParameter, keySize int, ssid []byte, listener types.StateChangedListener) (*Refresh, error)
type Round1Msg ¶
type Round1Msg struct { Commitment *commitment.HashCommitmentMessage `protobuf:"bytes,1,opt,name=commitment,proto3" json:"commitment,omitempty"` // contains filtered or unexported fields }
func (*Round1Msg) Descriptor
deprecated
func (*Round1Msg) GetCommitment ¶
func (x *Round1Msg) GetCommitment() *commitment.HashCommitmentMessage
func (*Round1Msg) ProtoMessage ¶
func (*Round1Msg) ProtoMessage()
func (*Round1Msg) ProtoReflect ¶
func (x *Round1Msg) ProtoReflect() protoreflect.Message
type Round2Msg ¶
type Round2Msg struct { Decommitment *commitment.HashDecommitmentMessage `protobuf:"bytes,1,opt,name=decommitment,proto3" json:"decommitment,omitempty"` // contains filtered or unexported fields }
func (*Round2Msg) Descriptor
deprecated
func (*Round2Msg) GetDecommitment ¶
func (x *Round2Msg) GetDecommitment() *commitment.HashDecommitmentMessage
func (*Round2Msg) ProtoMessage ¶
func (*Round2Msg) ProtoMessage()
func (*Round2Msg) ProtoReflect ¶
func (x *Round2Msg) ProtoReflect() protoreflect.Message
type Round3Msg ¶
type Round3Msg struct { ModProof *paillier.PaillierBlumMessage `protobuf:"bytes,1,opt,name=modProof,proto3" json:"modProof,omitempty"` FacProof *paillier.NoSmallFactorMessage `protobuf:"bytes,2,opt,name=facProof,proto3" json:"facProof,omitempty"` YschnorrProof *zkproof.SchnorrProofMessage `protobuf:"bytes,3,opt,name=yschnorrProof,proto3" json:"yschnorrProof,omitempty"` // contains filtered or unexported fields }
func (*Round3Msg) Descriptor
deprecated
func (*Round3Msg) GetEncshare ¶
func (*Round3Msg) GetFacProof ¶
func (x *Round3Msg) GetFacProof() *paillier.NoSmallFactorMessage
func (*Round3Msg) GetModProof ¶
func (x *Round3Msg) GetModProof() *paillier.PaillierBlumMessage
func (*Round3Msg) GetShareschnorrProof ¶
func (x *Round3Msg) GetShareschnorrProof() *zkproof.SchnorrProofMessage
func (*Round3Msg) GetYschnorrProof ¶
func (x *Round3Msg) GetYschnorrProof() *zkproof.SchnorrProofMessage
func (*Round3Msg) ProtoMessage ¶
func (*Round3Msg) ProtoMessage()
func (*Round3Msg) ProtoReflect ¶
func (x *Round3Msg) ProtoReflect() protoreflect.Message
type Type ¶
type Type int32
func (Type) Descriptor ¶
func (Type) Descriptor() protoreflect.EnumDescriptor
func (Type) EnumDescriptor
deprecated
func (Type) Number ¶
func (x Type) Number() protoreflect.EnumNumber
func (Type) Type ¶
func (Type) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.