tblsconv

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package tblsconv provides functions to convert into and from kryptology bls_sig types. This package is inspired by strconv.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyFromCore

func KeyFromCore(key core.PubKey) (*bls_sig.PublicKey, error)

KeyFromCore converts a core workflow public key into a kryptology bls public key.

func KeyFromETH2

func KeyFromETH2(key eth2p0.BLSPubKey) (*bls_sig.PublicKey, error)

KeyFromETH2 converts an eth2 phase0 public key into a kryptology bls public key.

func KeyToCore

func KeyToCore(key *bls_sig.PublicKey) (core.PubKey, error)

KeyToCore converts a kryptology bls public key into a core workflow public key.

func KeyToETH2

func KeyToETH2(key *bls_sig.PublicKey) (eth2p0.BLSPubKey, error)

KeyToETH2 converts a kryptology bls public key into an eth2 phase0 public key.

func SecretFromBytes

func SecretFromBytes(secret []byte) (*bls_sig.SecretKey, error)

SecretFromBytes returns a bls secret from bytes.

func SecretToBytes

func SecretToBytes(secret *bls_sig.SecretKey) ([]byte, error)

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

func SigFromCore(sig core.Signature) (*bls_sig.Signature, error)

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

func SigToCore

func SigToCore(sig *bls_sig.Signature) core.Signature

SigToCore converts a kryptology bls signature into a core workflow Signature type.

func SigToETH2

func SigToETH2(sig *bls_sig.Signature) eth2p0.BLSSignature

SigToETH2 converts a kryptology bls signature into an eth2 phase0 bls signature.

Types

This section is empty.

Jump to

Keyboard shortcuts

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