Documentation
¶
Index ¶
- func Address(o *signatures.Ownership) (common.Address, error)
- func AggregateBLSSignatures(ctx context.Context, sigs []*signatures.Signature) (*signatures.Signature, error)
- func BLSSign(ctx context.Context, key *bls.SignKey, hsh []byte, signerLen, signerIndex int) (*signatures.Signature, error)
- func BLSToOwnership(key *bls.VerKey) *signatures.Ownership
- func EcdsaSign(ctx context.Context, key *ecdsa.PrivateKey, hsh []byte) (*signatures.Signature, error)
- func EcdsaToOwnership(key *ecdsa.PublicKey) *signatures.Ownership
- func RestoreBLSPublicKey(ctx context.Context, s *signatures.Signature, knownVerKeys []*bls.VerKey) error
- func RestoreEcdsaPublicKey(ctx context.Context, s *signatures.Signature, hsh []byte) error
- func SignerCount(sig *signatures.Signature) int
- func Valid(ctx context.Context, s *signatures.Signature, hsh []byte, scope parens.Scope) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AggregateBLSSignatures ¶
func AggregateBLSSignatures(ctx context.Context, sigs []*signatures.Signature) (*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 RestoreEcdsaPublicKey ¶
func SignerCount ¶
func SignerCount(sig *signatures.Signature) int
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.