Documentation ¶
Index ¶
Constants ¶
View Source
const BLS_SECRET_KEY_SIZE = 32
Variables ¶
This section is empty.
Functions ¶
func BLSID ¶
BLSID turns a uint64 in to a BLS identifier. Taken from Attestant's Dirk source code - should be kept in sync with the original.
func ImportKeyFromKeystore ¶
This code is mostly copied from ethdo's processFromKeystore.
Types ¶
type DistributedWallet ¶
type DistributedWallet struct {
// contains filtered or unexported fields
}
func NewDistributedWallet ¶
func NewDistributedWallet(splitKey *SplitKey, peers map[uint64]string, threshold uint64) *DistributedWallet
func (*DistributedWallet) ImportAccount ¶
type SplitKey ¶
type SplitKey struct { // Number of required key shares to sign (i.e., the degree of the polynomial + 1) Threshold uint64 Shares map[uint64]*bls.SecretKey // contains filtered or unexported fields }
func NewSplitKey ¶
func (*SplitKey) PublicPolynomial ¶
Click to show internal directories.
Click to hide internal directories.