Documentation ¶
Overview ¶
Package tblsconv provides functions to convert into and from kryptology bls_sig types. This package is inspired by strconv.
Index ¶
- func KeyFromBytes(bytes []byte) (*bls_sig.PublicKey, error)
- func KeyFromCore(key core.PubKey) (*bls_sig.PublicKey, error)
- func KeyFromETH2(key eth2p0.BLSPubKey) (*bls_sig.PublicKey, error)
- func KeyToCore(key *bls_sig.PublicKey) (core.PubKey, error)
- func KeyToETH2(key *bls_sig.PublicKey) (eth2p0.BLSPubKey, error)
- func SecretFromBytes(secret []byte) (*bls_sig.SecretKey, error)
- func SecretToBytes(secret *bls_sig.SecretKey) ([]byte, error)
- func ShareToSecret(share *bls_sig.SecretKeyShare) (*bls_sig.SecretKey, error)
- func SigFromCore(sig core.Signature) (*bls_sig.Signature, error)
- func SigFromETH2(sig eth2p0.BLSSignature) (*bls_sig.Signature, error)
- func SigFromPartial(psig *bls_sig.PartialSignature) *bls_sig.Signature
- func SigToCore(sig *bls_sig.Signature) core.Signature
- func SigToETH2(sig *bls_sig.Signature) eth2p0.BLSSignature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyFromBytes ¶ added in v0.4.0
KeyFromBytes unmarshals the bytes into a kryptology bls public key.
func KeyFromCore ¶
KeyFromCore converts a core workflow public key into a kryptology bls public key.
func KeyFromETH2 ¶
KeyFromETH2 converts an eth2 phase0 public key into a kryptology bls public key.
func SecretFromBytes ¶
SecretFromBytes returns a bls secret from bytes.
func SecretToBytes ¶
SecretToBytes converts a bls secret into bytes.
func ShareToSecret ¶
func ShareToSecret(share *bls_sig.SecretKeyShare) (*bls_sig.SecretKey, error)
ShareToSecret converts a bls secret share into a normal bls secret.
func SigFromCore ¶
SigFromCore converts a core workflow Signature type into a kryptology bls signature.
func SigFromETH2 ¶
func SigFromETH2(sig eth2p0.BLSSignature) (*bls_sig.Signature, error)
SigFromETH2 converts an eth2 phase0 bls signature into a kryptology bls signature.
func SigFromPartial ¶
func SigFromPartial(psig *bls_sig.PartialSignature) *bls_sig.Signature
Types ¶
This section is empty.