modulepackage
1.0.0
Repository: https://github.com/wealdtech/go-eth2-types.git
Documentation: pkg.go.dev
# README
go-eth2-types
Go library providing Ethereum 2 types.
** Please note that this library uses standards that are not yet final, and as such may result in changes that alter public and private keys. Do not use this library for production use just yet **
Table of Contents
Install
go-eth2-types
is a standard Go module which can be installed with:
go get github.com/wealdtech/go-eth2-types
Usage
Please read the Go documentation for this library.
Maintainers
Jim McDonald: @mcdee.
Contribute
Contributions welcome. Please check out the issues.
License
Apache-2.0 © 2019 Weald Technology Trading Ltd
# Functions
AggregateSignatures aggregates a slice of signatures.
BLSPrivateKeyFromBytes creates a BLS private key from a byte slice.
BLSPublicKeyFromBytes creates a BLS public key from a byte slice.
BLSSignatureFromBytes creates a BLS signature from a byte slice.
Domain returns a uint64 domain.
GenerateBLSPrivateKey generates a random BLS private key.
# Variables
DomainBeaconAttester is a domain constant.
DomainBeaconProposer is a domain constant.
DomainDeposit is a domain constant.
DomainRANDAO is a domain constant.
DomainVoluntaryExit is a domain constant.
ErrMalformed is returned when an external representation cannot be turned in to a native representation.
# Structs
BLSPrivateKey is a private key in Ethereum 2.
BLSPublicKey used in the BLS signature scheme.
BLSSignature is a BLS signature.
# Interfaces
PrivateKey is a private key in Ethereum 2.
PublicKey is an interface for public keys.
No description provided by the author