Versions in this module Expand all Collapse all v0 v0.1.5 Aug 30, 2021 Changes in this version + var File_shmsg_shmsg_proto protoreflect.FileDescriptor + func GetSigner(signedMessage []byte) (common.Address, error) + func SignMessage(msg proto.Message, privkey *ecdsa.PrivateKey) ([]byte, error) + type Accusation struct + Accused [][]byte + Eon uint64 + func (*Accusation) Descriptor() ([]byte, []int) + func (*Accusation) ProtoMessage() + func (x *Accusation) GetAccused() [][]byte + func (x *Accusation) GetEon() uint64 + func (x *Accusation) ProtoReflect() protoreflect.Message + func (x *Accusation) Reset() + func (x *Accusation) String() string + type Apology struct + Accusers [][]byte + Eon uint64 + PolyEvals [][]byte + func (*Apology) Descriptor() ([]byte, []int) + func (*Apology) ProtoMessage() + func (x *Apology) GetAccusers() [][]byte + func (x *Apology) GetEon() uint64 + func (x *Apology) GetPolyEvals() [][]byte + func (x *Apology) ProtoReflect() protoreflect.Message + func (x *Apology) Reset() + func (x *Apology) String() string + type BatchConfig struct + ConfigContractAddress []byte + ConfigIndex uint64 + Keypers [][]byte + StartBatchIndex uint64 + Started bool + Threshold uint64 + ValidatorsUpdated bool + func (*BatchConfig) Descriptor() ([]byte, []int) + func (*BatchConfig) ProtoMessage() + func (x *BatchConfig) GetConfigContractAddress() []byte + func (x *BatchConfig) GetConfigIndex() uint64 + func (x *BatchConfig) GetKeypers() [][]byte + func (x *BatchConfig) GetStartBatchIndex() uint64 + func (x *BatchConfig) GetStarted() bool + func (x *BatchConfig) GetThreshold() uint64 + func (x *BatchConfig) GetValidatorsUpdated() bool + func (x *BatchConfig) ProtoReflect() protoreflect.Message + func (x *BatchConfig) Reset() + func (x *BatchConfig) String() string + type BatchConfigStarted struct + BatchConfigIndex uint64 + func (*BatchConfigStarted) Descriptor() ([]byte, []int) + func (*BatchConfigStarted) ProtoMessage() + func (x *BatchConfigStarted) GetBatchConfigIndex() uint64 + func (x *BatchConfigStarted) ProtoReflect() protoreflect.Message + func (x *BatchConfigStarted) Reset() + func (x *BatchConfigStarted) String() string + type CheckIn struct + EncryptionPublicKey []byte + ValidatorPublicKey []byte + func (*CheckIn) Descriptor() ([]byte, []int) + func (*CheckIn) ProtoMessage() + func (x *CheckIn) GetEncryptionPublicKey() []byte + func (x *CheckIn) GetValidatorPublicKey() []byte + func (x *CheckIn) ProtoReflect() protoreflect.Message + func (x *CheckIn) Reset() + func (x *CheckIn) String() string + type DecryptionSignature struct + BatchIndex uint64 + Signature []byte + func (*DecryptionSignature) Descriptor() ([]byte, []int) + func (*DecryptionSignature) ProtoMessage() + func (x *DecryptionSignature) GetBatchIndex() uint64 + func (x *DecryptionSignature) GetSignature() []byte + func (x *DecryptionSignature) ProtoReflect() protoreflect.Message + func (x *DecryptionSignature) Reset() + func (x *DecryptionSignature) String() string + type EonStartVote struct + StartBatchIndex uint64 + func (*EonStartVote) Descriptor() ([]byte, []int) + func (*EonStartVote) ProtoMessage() + func (x *EonStartVote) GetStartBatchIndex() uint64 + func (x *EonStartVote) ProtoReflect() protoreflect.Message + func (x *EonStartVote) Reset() + func (x *EonStartVote) String() string + type EpochSecretKeyShare struct + Eon uint64 + Epoch uint64 + Share []byte + func (*EpochSecretKeyShare) Descriptor() ([]byte, []int) + func (*EpochSecretKeyShare) ProtoMessage() + func (x *EpochSecretKeyShare) GetEon() uint64 + func (x *EpochSecretKeyShare) GetEpoch() uint64 + func (x *EpochSecretKeyShare) GetShare() []byte + func (x *EpochSecretKeyShare) ProtoReflect() protoreflect.Message + func (x *EpochSecretKeyShare) Reset() + func (x *EpochSecretKeyShare) String() string + type G1 struct + G1Bytes []byte + func (*G1) Descriptor() ([]byte, []int) + func (*G1) ProtoMessage() + func (g1 *G1) Get() (*bn256.G1, error) + func (g1 *G1) Set(v *bn256.G1) + func (x *G1) GetG1Bytes() []byte + func (x *G1) ProtoReflect() protoreflect.Message + func (x *G1) Reset() + func (x *G1) String() string + type G2 struct + G2Bytes []byte + func (*G2) Descriptor() ([]byte, []int) + func (*G2) ProtoMessage() + func (g2 *G2) Get() (*bn256.G2, error) + func (g2 *G2) Set(v *bn256.G2) + func (x *G2) GetG2Bytes() []byte + func (x *G2) ProtoReflect() protoreflect.Message + func (x *G2) Reset() + func (x *G2) String() string + type GT struct + Gtbytes []byte + func (*GT) Descriptor() ([]byte, []int) + func (*GT) ProtoMessage() + func (gt *GT) Get() (*bn256.GT, error) + func (gt *GT) Set(v *bn256.GT) + func (x *GT) GetGtbytes() []byte + func (x *GT) ProtoReflect() protoreflect.Message + func (x *GT) Reset() + func (x *GT) String() string + type Message struct + Payload isMessage_Payload + func NewAccusation(eon uint64, accused []common.Address) *Message + func NewApology(eon uint64, accusers []common.Address, polyEvals []*big.Int) *Message + func NewBatchConfig(startBatchIndex uint64, keypers []common.Address, threshold uint64, ...) *Message + func NewBatchConfigStarted(configIndex uint64) *Message + func NewCheckIn(validatorPublicKey []byte, encryptionKey *ecies.PublicKey) *Message + func NewDecryptionSignature(batchIndex uint64, signature []byte) *Message + func NewEonStartVote(startBatchIndex uint64) *Message + func NewEpochSecretKeyShare(eon, epoch uint64, share *shcrypto.EpochSecretKeyShare) *Message + func NewPolyCommitment(eon uint64, gammas *shcrypto.Gammas) *Message + func NewPolyEval(eon uint64, receivers []common.Address, encryptedEvals [][]byte) *Message + func (*Message) Descriptor() ([]byte, []int) + func (*Message) ProtoMessage() + func (m *Message) GetPayload() isMessage_Payload + func (m *Message) GobDecode(data []byte) error + func (m *Message) GobEncode() ([]byte, error) + func (x *Message) GetAccusation() *Accusation + func (x *Message) GetApology() *Apology + func (x *Message) GetBatchConfig() *BatchConfig + func (x *Message) GetBatchConfigStarted() *BatchConfigStarted + func (x *Message) GetCheckIn() *CheckIn + func (x *Message) GetDecryptionSignature() *DecryptionSignature + func (x *Message) GetEonStartVote() *EonStartVote + func (x *Message) GetEpochSecretKeyShare() *EpochSecretKeyShare + func (x *Message) GetPolyCommitment() *PolyCommitment + func (x *Message) GetPolyEval() *PolyEval + func (x *Message) ProtoReflect() protoreflect.Message + func (x *Message) Reset() + func (x *Message) String() string + type MessageWithNonce struct + ChainId []byte + Msg *Message + RandomNonce uint64 + func GetMessage(signedMessage []byte) (*MessageWithNonce, error) + func (*MessageWithNonce) Descriptor() ([]byte, []int) + func (*MessageWithNonce) ProtoMessage() + func (x *MessageWithNonce) GetChainId() []byte + func (x *MessageWithNonce) GetMsg() *Message + func (x *MessageWithNonce) GetRandomNonce() uint64 + func (x *MessageWithNonce) ProtoReflect() protoreflect.Message + func (x *MessageWithNonce) Reset() + func (x *MessageWithNonce) String() string + type Message_Accusation struct + Accusation *Accusation + type Message_Apology struct + Apology *Apology + type Message_BatchConfig struct + BatchConfig *BatchConfig + type Message_BatchConfigStarted struct + BatchConfigStarted *BatchConfigStarted + type Message_CheckIn struct + CheckIn *CheckIn + type Message_DecryptionSignature struct + DecryptionSignature *DecryptionSignature + type Message_EonStartVote struct + EonStartVote *EonStartVote + type Message_EpochSecretKeyShare struct + EpochSecretKeyShare *EpochSecretKeyShare + type Message_PolyCommitment struct + PolyCommitment *PolyCommitment + type Message_PolyEval struct + PolyEval *PolyEval + type PolyCommitment struct + Eon uint64 + Gammas [][]byte + func (*PolyCommitment) Descriptor() ([]byte, []int) + func (*PolyCommitment) ProtoMessage() + func (x *PolyCommitment) GetEon() uint64 + func (x *PolyCommitment) GetGammas() [][]byte + func (x *PolyCommitment) ProtoReflect() protoreflect.Message + func (x *PolyCommitment) Reset() + func (x *PolyCommitment) String() string + type PolyEval struct + EncryptedEvals [][]byte + Eon uint64 + Receivers [][]byte + func (*PolyEval) Descriptor() ([]byte, []int) + func (*PolyEval) ProtoMessage() + func (x *PolyEval) GetEncryptedEvals() [][]byte + func (x *PolyEval) GetEon() uint64 + func (x *PolyEval) GetReceivers() [][]byte + func (x *PolyEval) ProtoReflect() protoreflect.Message + func (x *PolyEval) Reset() + func (x *PolyEval) String() string