frost

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Verify

func Verify(msg, signature, pubkey []byte) bool

Verify a signature

Types

type Frost

type Frost struct {
	ID   peer.ID                           // this peer's ID
	T    uint32                            // threshold
	N    uint32                            // number of parties
	K    dkg.Keys                          // key share and group pubkey
	Keys map[peer.ID]*ristretto255.Element // group keys derived from public commitments
	Msg  peer.Transport                    // message tranport layer
}

Frost defines the interface for computing threshold signatures

func NewFrost

func NewFrost(id, t, n uint32, msg peer.Transport) (*Frost, error)

NewFrost constructs a Frost instance

func (*Frost) KeyGen

func (f *Frost) KeyGen(ctx dkg.ContextString) error

KeyGen runs the dkg scheme and generates a key share along with a group pubkey

func (*Frost) Sign

func (f *Frost) Sign(msg []byte, peers []peer.ID) ([]byte, []peer.ID, error)

Sign runs the signing protocol

Jump to

Keyboard shortcuts

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