utils

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const SETUP_GROUP int = 13

Variables

This section is empty.

Functions

func GenerateDeterministicPrivateCoefficients

func GenerateDeterministicPrivateCoefficients(n int) []*big.Int

func GenerateEncryptedShares

func GenerateEncryptedShares(dkgStates []*state.DkgState, idx int) []*big.Int

func GenerateEncryptedSharesAndCommitments

func GenerateEncryptedSharesAndCommitments(dkgStates []*state.DkgState)

func GenerateGPKJ

func GenerateGPKJ(dkgStates []*state.DkgState)

func GenerateKeyShares

func GenerateKeyShares(dkgStates []*state.DkgState)

func GenerateMasterPublicKey

func GenerateMasterPublicKey(dkgStates []*state.DkgState) []*state.DkgState

GenerateMasterPublicKey computes the mpk for the protocol. This computes this by using all of the secret values from DKGStates.

func GenerateParticipantList

func GenerateParticipantList(dkgStates []*state.DkgState) state.ParticipantList

func GeneratePublicCoefficients

func GeneratePublicCoefficients(privCoefs []*big.Int) [][2]*big.Int

func GenerateTestAddress

func GenerateTestAddress(t *testing.T) (common.Address, *big.Int, [2]*big.Int)

func GetETHDKGRegistrationOpened

func GetETHDKGRegistrationOpened(logs []*types.Log, eth layer1.Client, contracts layer1.AllSmartContracts) (*bindings.ETHDKGRegistrationOpened, error)

func InitializeNewDetDkgStateInfo

func InitializeNewDetDkgStateInfo(tempDir string, n int) []*state.DkgState

func InitializeNewDkgStateInfo

func InitializeNewDkgStateInfo(tempDir string, n int, deterministicShares bool) []*state.DkgState

func InitializeNewNonDetDkgStateInfo

func InitializeNewNonDetDkgStateInfo(tempDir string, n int) []*state.DkgState

Types

This section is empty.

Jump to

Keyboard shortcuts

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