threshcryptopbdsl

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Recover

func Recover[C any](m dsl.Module, destModule types.ModuleID, data [][]uint8, signatureShares [][]uint8, context *C)

func RecoverResult

func RecoverResult(m dsl.Module, destModule types.ModuleID, fullSignature []uint8, ok bool, error string, origin *types1.RecoverOrigin)

func SignShare

func SignShare[C any](m dsl.Module, destModule types.ModuleID, data [][]uint8, context *C)

func SignShareResult

func SignShareResult(m dsl.Module, destModule types.ModuleID, signatureShare []uint8, origin *types1.SignShareOrigin)

func UponEvent

func UponEvent[W types.Event_TypeWrapper[Ev], Ev any](m dsl.Module, handler func(ev *Ev) error)

func UponRecover

func UponRecover(m dsl.Module, handler func(data [][]uint8, signatureShares [][]uint8, origin *types.RecoverOrigin) error)

func UponRecoverResult

func UponRecoverResult[C any](m dsl.Module, handler func(fullSignature []uint8, ok bool, error string, context *C) error)

func UponSignShare

func UponSignShare(m dsl.Module, handler func(data [][]uint8, origin *types.SignShareOrigin) error)

func UponSignShareResult

func UponSignShareResult[C any](m dsl.Module, handler func(signatureShare []uint8, context *C) error)

func UponVerifyFull

func UponVerifyFull(m dsl.Module, handler func(data [][]uint8, fullSignature []uint8, origin *types.VerifyFullOrigin) error)

func UponVerifyFullResult

func UponVerifyFullResult[C any](m dsl.Module, handler func(ok bool, error string, context *C) error)

func UponVerifyShare

func UponVerifyShare(m dsl.Module, handler func(data [][]uint8, signatureShare []uint8, nodeId types2.NodeID, origin *types.VerifyShareOrigin) error)

func UponVerifyShareResult

func UponVerifyShareResult[C any](m dsl.Module, handler func(ok bool, error string, context *C) error)

func VerifyFull

func VerifyFull[C any](m dsl.Module, destModule types.ModuleID, data [][]uint8, fullSignature []uint8, context *C)

func VerifyFullResult

func VerifyFullResult(m dsl.Module, destModule types.ModuleID, ok bool, error string, origin *types1.VerifyFullOrigin)

func VerifyShare

func VerifyShare[C any](m dsl.Module, destModule types.ModuleID, data [][]uint8, signatureShare []uint8, nodeId types.NodeID, context *C)

func VerifyShareResult

func VerifyShareResult(m dsl.Module, destModule types.ModuleID, ok bool, error string, origin *types1.VerifyShareOrigin)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL