Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUnmarshallers ¶
func RegisterUnmarshallers(channel net.BroadcastChannel)
RegisterUnmarshallers initializes the given broadcast channel to be able to perform relay entry signing protocol interactions by registering all the required protocol message unmarshallers. The channel has to be initialized before the SignAndSubmit is called.
func SignAndSubmit ¶
func SignAndSubmit( logger log.StandardLogger, blockCounter chain.BlockCounter, channel net.BroadcastChannel, beaconChain beaconchain.Interface, previousEntryBytes []byte, honestThreshold int, signer *dkg.ThresholdSigner, startBlockHeight uint64, ) error
SignAndSubmit triggers the threshold signature process for the previous relay entry and publishes the signature to the chain as a new relay entry.
Types ¶
type SignatureShareMessage ¶
type SignatureShareMessage struct {
// contains filtered or unexported fields
}
SignatureShareMessage is a message payload that carries the sender's signature share for the given message.
func NewSignatureShareMessage ¶
func NewSignatureShareMessage( senderID group.MemberIndex, shareBytes []byte, sessionID string, ) *SignatureShareMessage
NewSignatureShareMessage creates new SignatureShareMessage.
func (*SignatureShareMessage) Marshal ¶
func (ssm *SignatureShareMessage) Marshal() ([]byte, error)
Marshal converts this SignatureShareMessage to a byte array suitable for network communication.
func (*SignatureShareMessage) SenderID ¶
func (ssm *SignatureShareMessage) SenderID() group.MemberIndex
SenderID returns protocol-level identifier of the message sender.
func (*SignatureShareMessage) Type ¶
func (*SignatureShareMessage) Type() string
Type returns a string describing a SignatureShareMessage's type.
func (*SignatureShareMessage) Unmarshal ¶
func (ssm *SignatureShareMessage) Unmarshal(bytes []byte) error
Unmarshal converts a byte array produced by Marshal to a SignatureShareMessage.