Documentation ¶
Index ¶
- func ExtractPayloads(data []byte) ([]payloadMessage, error)
- func NewClient(ctx clientContext.ClientContext, messageChannel <-chan shared.ProtocolMessage) (*client, error)
- func NewRelayContractClient(ethClient *ethclient.Client, address common.Address, ...) (*relayContractClient, error)
- func NewSignatureCollection(message shared.Message, signingPolicy *policy.SigningPolicy, threshold uint16) *signaturesCollection
- func NewSubmissionListener(address common.Address) *submissionListener
- type FinalizationReady
- type FinalizationResult
- type IndexedSignature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractPayloads ¶
ExtractPayloads extracts payloads from a transaction input to submission contracts and returns a slice of payloadMessages.
func NewClient ¶
func NewClient(ctx clientContext.ClientContext, messageChannel <-chan shared.ProtocolMessage) (*client, error)
NewClient creates a new client that manages finalizations.
messageChannel is used to receive messages from protocol.client.
func NewRelayContractClient ¶
func NewSignatureCollection ¶
func NewSignatureCollection(message shared.Message, signingPolicy *policy.SigningPolicy, threshold uint16) *signaturesCollection
func NewSubmissionListener ¶
Types ¶
type FinalizationReady ¶
type FinalizationReady struct {
// contains filtered or unexported fields
}
type FinalizationResult ¶
type FinalizationResult struct {
// contains filtered or unexported fields
}
func PrepareFinalizationResults ¶
func PrepareFinalizationResults(sc *signaturesCollection) (FinalizationResult, error)
PrepareFinalizationResults returns the message and signatures that are needed to construct the transaction input that is needed for the finalization.
The signatures are chosen in a way to minimize the number of signatures needed for finalization.
func (FinalizationResult) PrepareFinalizationTxInput ¶
func (fr FinalizationResult) PrepareFinalizationTxInput() ([]byte, error)
PrepareFinalizationTxInput prepares a transaction input needed to finalize.
type IndexedSignature ¶
type IndexedSignature struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.