tbls

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRootSignature

func BuildRootSignature(partialSignaturesAsHex, idsOfSignersAsHex []string) (rootSignatureAsHex string)

Now based on partial signatures + IDs of T/N signers - recover the root signature

func DeriveRootPubKey

func DeriveRootPubKey(verificationVectors ...[]string) string

Function to get the rootPubKey from verification vectors of group members

func GeneratePartialSignature

func GeneratePartialSignature(yourIdAsHex, message string, secretSharesAsHex []string) (partialSignatureAsHex string)

Function to generate partial signature as one of the T/N signers These signatures by T parties will be aggregated later and can be verified with rootPubKey(pubkey of group)

func GenerateRandomIds

func GenerateRandomIds(numberOfParties uint) (idsAsHex []string)

Function to generate random IDs for N parties of DKG

func GenerateTbls

func GenerateTbls(threshold uint, partiesIDs []string) (verificationVector, sharesForOtherParties []string)

Function to generate verification vector and secret shares to distribute them among N parties

func VerifyRootSignature

func VerifyRootSignature(rootPubKeyAsHex, rootSignaAsHex, message string) bool

func VerifyShare

func VerifyShare(yourIdAsHex, secretShareAsHex string, verificationVectorAsHex []string) bool

Function to verify share which you'll get from other parties based on their verification vector + your ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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