Documentation ¶
Index ¶
- Variables
- func Bytes2Sig(curve elliptic.Curve, sig []byte) (r, s, v *big.Int, err error)
- func BytesToPrivateKey(key []byte, curve elliptic.Curve) *ecdsa.PrivateKey
- func BytesToPublicKey(curve elliptic.Curve, buff []byte) *ecdsa.PublicKey
- func PrivateKeyBytes(priv *ecdsa.PrivateKey) (b []byte)
- func PublicKeyBytes(pub *ecdsa.PublicKey) []byte
- func Sig2Bytes(curve elliptic.Curve, r, s, v *big.Int) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var Recover = recoverable.Recover
View Source
var RecoverSign = recoverable.Sign
View Source
var SignRFC6979 = rfc6979.Sign
SignRF6979 Deterministic Signature see https://tools.ietf.org/html/rfc6979
Functions ¶
func BytesToPrivateKey ¶
func BytesToPrivateKey(key []byte, curve elliptic.Curve) *ecdsa.PrivateKey
BytesToPrivateKey 。
func BytesToPublicKey ¶
BytesToPublicKey .
func PublicKeyBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.