random

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandHex

func RandHex(n int) string

RandHex returns a random hexadecimal string of length n.

Types

type GenerateResult

type GenerateResult struct {
	GeneratedShare             []*GeneratedShare
	KeyshareEncryptedKeyshares []*types.EncryptedKeyshare
	Commitments                []string
	MasterPublicKey            string
}

func GeneratePubKeyAndShares

func GeneratePubKeyAndShares(totalNumberOfValidator uint32) (*GenerateResult, error)

type GeneratedShare

type GeneratedShare struct {
	Share            string
	EncShare         string
	Index            kyber.Scalar
	PrivateKey       *dcrdSecp256k1.PrivateKey
	PK               *dcrdSecp256k1.PublicKey
	ValidatorAddress string
}

Jump to

Keyboard shortcuts

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