coin

package
v0.0.0-...-dfb9311 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package coin implements the coin random source.

It is meant to be used in the main process. The result of the setup phase should be a consensus on this random source.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory(pid uint16, wtkey *tss.WeakThresholdKey) gomel.RandomSourceFactory

NewFactory creates a coin factory

func NewSeededFactory

func NewSeededFactory(nProc, pid uint16, seed int64, shareProviders map[uint16]bool) gomel.RandomSourceFactory

NewSeededFactory creates an unsafe coin factory. Should be used only for testing purposes

Types

This section is empty.

Jump to

Keyboard shortcuts

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