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 signing protocol interactions by registering all the required protocol message unmarshallers.
Types ¶
type Result ¶
type Result struct { // Signature is the tECDSA signature produced as result of the tECDSA // signing process. Signature *tecdsa.Signature }
Result of the tECDSA signing protocol.
func Execute ¶
func Execute( ctx context.Context, logger log.StandardLogger, message *big.Int, sessionID string, memberIndex group.MemberIndex, privateKeyShare *tecdsa.PrivateKeyShare, groupSize int, dishonestThreshold int, excludedMembersIndexes []group.MemberIndex, channel net.BroadcastChannel, membershipValidator *group.MembershipValidator, ) (*Result, error)
Execute runs the tECDSA signing protocol, given a message to sign, broadcast channel to mediate with, a block counter used for time tracking, a member index to use in the group, private key share, dishonest threshold, and block height when signing protocol should start.
This function also supports signing execution with a subset of the signing group by passing a non-empty excludedMembers slice holding the members that should be excluded.