mpc

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeygenV0 added in v0.7.1

func KeygenV0(current crypto.PartyID, option ...v0types.KeygenOption) ([]*cmp.Config, error)

The function KeygenV0 generates cryptographic keys based on the provided options.

Types

type AccountV1 added in v0.7.1

type AccountV1 = base.AccountV1

type EncKeyshareSet added in v0.7.1

type EncKeyshareSet = v1types.EncKeyshareSet

type KeyShareCollection added in v0.7.1

type KeyShareCollection = v0types.KeyShareCollection

func GenerateV0 added in v0.7.1

func GenerateV0(prefix string, count int, coinType crypto.CoinType) (KeyShareCollection, error)

The function GenerateV0 generates a collection of key shares with a given prefix, count, and coin type.

type KeyshareSet added in v0.7.1

type KeyshareSet = v1types.KeyshareSet

func KeygenV1 added in v0.7.1

func KeygenV1() (KeyshareSet, error)

The function KeygenV1 generates a keyshare set.

func NewKSS added in v0.7.1

func NewKSS(pub *KeyshareV1, priv *KeyshareV1) KeyshareSet

NewKSS creates a new keyshare set from a list of keyshares.

type KeyshareV0 added in v0.7.1

type KeyshareV0 = v0types.Keyshare

type KeyshareV1 added in v0.7.1

type KeyshareV1 = v1types.Keyshare

func GenerateV2 added in v0.7.1

func GenerateV2(name string, ct crypto.CoinType) (*models.AccountV1, *KeyshareV1, error)

GenerateV2 generates a new account with a given ID.

type ZKSet added in v0.7.1

type ZKSet = v1types.ZKSet

func LoadZKSet added in v0.7.1

func LoadZKSet(str string) (ZKSet, error)

LoadZKSet loads a zero-knowledge set from a list of zero-knowledge proofs.

func NewZKSet added in v0.7.1

func NewZKSet(pubKey *crypto.Secp256k1PubKey, initialIds ...string) (ZKSet, error)

NewZKSet creates a new zero-knowledge set from a list of zero-knowledge proofs.

Directories

Path Synopsis
protocol
cmp
types
v0
v1

Jump to

Keyboard shortcuts

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