Documentation ¶
Index ¶
- Variables
- func Recover(curve elliptic.Curve, sig *sign.Signature, hash []byte) (*ecdsa.PublicKey, bool, error)
- func RecoverWithNonce(curve elliptic.Curve, sig *sign.Signature, hash []byte, nonce int) (*ecdsa.PublicKey, bool, error)
- func Sign(privateKey *ecdsa.PrivateKey, hash []byte, compressed bool) (*sign.Signature, error)
- func SignWithNonce(privateKey *ecdsa.PrivateKey, hash []byte, nonce int, compressed bool) (*sign.Signature, error)
- type Cofactor
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCurve = errors.New("unsupport curve") ErrPubKey = errors.New("no valid solution for pubkey found") )
ErrCurve .
Functions ¶
func Recover ¶
func Recover(curve elliptic.Curve, sig *sign.Signature, hash []byte) (*ecdsa.PublicKey, bool, error)
Recover recover public key from sig and hash
func RecoverWithNonce ¶
func RecoverWithNonce(curve elliptic.Curve, sig *sign.Signature, hash []byte, nonce int) (*ecdsa.PublicKey, bool, error)
RecoverWithNonce .
func SignWithNonce ¶
func SignWithNonce(privateKey *ecdsa.PrivateKey, hash []byte, nonce int, compressed bool) (*sign.Signature, error)
SignWithNonce .
Types ¶
Click to show internal directories.
Click to hide internal directories.