Documentation
¶
Index ¶
- func GeneratePublic(threshold party.Size, secretShares map[party.ID]*eddsa.SecretShare) *eddsa.Public
- func GenerateSecrets(set party.IDSlice, threshold party.Size) (*ristretto.Scalar, map[party.ID]*eddsa.SecretShare)
- func GenerateSet(n party.Size) party.IDSlice
- func MarshalKGOutState(s *KeyGenOutState) ([]byte, error)
- func NewPartySlice(n party.Size) party.IDSlice
- func PartyRoutine(in [][]byte, s *state.State) ([][]byte, error)
- func ResetKeygenOutputPointee(state *KeyGenOutState)
- func ResetSignOutputPointee(state *MPCSignatureOutState)
- func UnmarshalKGOutState(s *KeyGenOutState, data []byte) error
- func UnmarshalKGState(newState *state.State, data []byte) error
- func UnmarshalSignRound(roundData []byte, roundNum int) (state.Round, error)
- type FKeyGenOutput
- type KeyGenOutState
- type KeyGenOutStateJSON
- type MPCSignatureOutState
- type MPCSignatureOutStateJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePublic ¶
func GenerateSecrets ¶
func MarshalKGOutState ¶
func MarshalKGOutState(s *KeyGenOutState) ([]byte, error)
func NewPartySlice ¶
NewPartySlice returns n party.ID s in the range [1, ..., n].
func ResetKeygenOutputPointee ¶
func ResetKeygenOutputPointee(state *KeyGenOutState)
ResetKeygenOutputPointee 设置指针...
func ResetSignOutputPointee ¶
func ResetSignOutputPointee(state *MPCSignatureOutState)
ResetSignOutputPointee 设置指针...
func UnmarshalKGOutState ¶
func UnmarshalKGOutState(s *KeyGenOutState, data []byte) error
Types ¶
type FKeyGenOutput ¶
type FKeyGenOutput struct { Secrets map[party.ID]*eddsa.SecretShare }
type KeyGenOutState ¶
type KeyGenOutState struct { PartyID party.ID State *state.State Output *keygen.Output Message1 [][]byte Message2 [][]byte StateData []byte }
func (*KeyGenOutState) SetOutput ¶
func (s *KeyGenOutState) SetOutput(o *keygen.Output)
SetOutput 改变 output 指针指向
type KeyGenOutStateJSON ¶
type MPCSignatureOutState ¶
type MPCSignatureOutState struct { PartyID party.ID State *state.State Output *sign.Output GroupKey *eddsa.PublicKey Message1 [][]byte Message2 [][]byte }
func (*MPCSignatureOutState) MarshalJSON ¶
func (s *MPCSignatureOutState) MarshalJSON() ([]byte, error)
func (*MPCSignatureOutState) UnmarshalJSON ¶
func (s *MPCSignatureOutState) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.