Documentation ¶
Index ¶
- func CalcHash(data []byte) *types.Hash
- func PubkeyToAddress(pk *types.Pubkey) (*types.Address, error)
- func RecoverPkFromSig(hash *types.Hash, sig *types.Signature) (*types.Pubkey, error)
- func Sign(hash *types.Hash, prv *ecdsa.PrivateKey) (*types.Signature, error)
- func VerifySignature(pubkey *types.Pubkey, hash *types.Hash, sig *types.Signature) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecoverPkFromSig ¶
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
|
Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve. |
cloudflare
Package bn256 implements a particular bilinear group at the 128-bit security level.
|
Package bn256 implements a particular bilinear group at the 128-bit security level. |
google
Package bn256 implements a particular bilinear group.
|
Package bn256 implements a particular bilinear group. |
Package secp256k1 wraps the bitcoin secp256k1 C library.
|
Package secp256k1 wraps the bitcoin secp256k1 C library. |
Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202.
|
Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202. |
Click to show internal directories.
Click to hide internal directories.