Documentation ¶
Index ¶
- func BytesCombine(pBytes ...[]byte) []byte
- func CompressPubkey(pubkey *ecdsa.PublicKey) []byte
- func DecompressPubkey(pubkey []byte) (*ecdsa.PublicKey, error)
- func ECRecovery(data []byte, rawSign []byte) (*ecdsa.PublicKey, error)
- func Sign(priv *ecdsa.PrivateKey, hash []byte) ([]byte, error)
- func ValidateSignatureValues(v byte, r, s *big.Int, homestead bool) bool
- func Verify(public *ecdsa.PublicKey, hash []byte, sign []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesCombine ¶
func CompressPubkey ¶
CompressPubkey encodes a public key to the 33-byte compressed format.
func DecompressPubkey ¶
DecompressPubkey parses a public key in the 33-byte compressed format.
func ECRecovery ¶
According hash and sign to rccovery publickey
func Sign ¶
func Sign(priv *ecdsa.PrivateKey, hash []byte) ([]byte, error)
p256 Sign with privatekey
func ValidateSignatureValues ¶
Validate v,r and s is true
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.