mpc

package
v0.7.5-beta.6 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 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 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
types
v1

Jump to

Keyboard shortcuts

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