signatures

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Address

func Address(o *signatures.Ownership) (common.Address, error)

func AggregateBLSSignatures

func AggregateBLSSignatures(ctx context.Context, sigs []*signatures.Signature) (*signatures.Signature, error)

func BLSSign

func BLSSign(ctx context.Context, key *bls.SignKey, hsh []byte, signerLen, signerIndex int) (*signatures.Signature, error)

func BLSToOwnership

func BLSToOwnership(key *bls.VerKey) *signatures.Ownership

func EcdsaSign

func EcdsaSign(ctx context.Context, key *ecdsa.PrivateKey, hsh []byte) (*signatures.Signature, error)

func EcdsaToOwnership

func EcdsaToOwnership(key *ecdsa.PublicKey) *signatures.Ownership

func RestoreBLSPublicKey

func RestoreBLSPublicKey(ctx context.Context, s *signatures.Signature, knownVerKeys []*bls.VerKey) error

func RestoreEcdsaPublicKey

func RestoreEcdsaPublicKey(ctx context.Context, s *signatures.Signature, hsh []byte) error

func SignerCount

func SignerCount(sig *signatures.Signature) int

func Valid

func Valid(ctx context.Context, s *signatures.Signature, hsh []byte, scope parens.Scope) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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