mpc

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 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.3

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

KeygenV0 generates cryptographic keys based on the provided options.

Types

type AccountV1 added in v0.7.3

type AccountV1 = base.AccountV1

AccountV1 is a type alias for the AccountV1 struct in the base package.

type EncKeyshareSet added in v0.7.3

type EncKeyshareSet = v1types.EncKeyshareSet

EncKeyshareSet is a type alias for the EncKeyshareSet struct in the v1types package.

type KeyShareCollection added in v0.7.3

type KeyShareCollection = v0types.KeyShareCollection

KeyShareCollection is a type alias for the KeyShareCollection struct in the v0types package.

func GenerateV0 added in v0.7.3

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

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

type KeyshareSet added in v0.7.3

type KeyshareSet = v1types.KeyshareSet

KeyshareSet is a type alias for the KeyshareSet struct in the v1types package.

func GenerateV2 added in v0.7.3

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

GenerateV2 generates a new account with a given ID.

func KeygenV1 added in v0.7.3

func KeygenV1() (KeyshareSet, error)

KeygenV1 generates a keyshare set.

func NewKSS added in v0.7.3

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

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

type KeyshareV0 added in v0.7.3

type KeyshareV0 = v0types.Keyshare

KeyshareV0 is a type alias for the Keyshare struct in the v0types package.

type KeyshareV1 added in v0.7.3

type KeyshareV1 = v1types.Keyshare

KeyshareV1 is a type alias for the Keyshare struct in the v1types package.

type ZKSet added in v0.7.3

type ZKSet = v1types.ZKSet

ZKSet is a type alias for the ZKSet struct in the v1types package.

func LoadZKSet added in v0.7.3

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.3

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