Documentation ¶
Index ¶
- Variables
- func Recover(curve elliptic.Curve, r, s, v *big.Int, hash []byte) (*ecdsa.PublicKey, bool, error)
- func RecoverWithNonce(curve elliptic.Curve, r, s, v *big.Int, hash []byte, nonce int) (*ecdsa.PublicKey, bool, error)
- func Sign(privateKey *ecdsa.PrivateKey, hash []byte, compressed bool) (*big.Int, *big.Int, *big.Int, error)
- func SignWithNonce(privateKey *ecdsa.PrivateKey, hash []byte, nonce int, compressed bool) (*big.Int, *big.Int, *big.Int, 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 RecoverWithNonce ¶
func RecoverWithNonce(curve elliptic.Curve, r, s, v *big.Int, hash []byte, nonce int) (*ecdsa.PublicKey, bool, error)
RecoverWithNonce .
Types ¶
Click to show internal directories.
Click to hide internal directories.