ecdsa

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2021 License: MIT Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RecoverSign = recoverable.Sign
View Source
var SignRFC6979 = rfc6979.Sign

SignRF6979 Deterministic Signature see https://tools.ietf.org/html/rfc6979

Functions

func Bytes2Sig

func Bytes2Sig(curve elliptic.Curve, sig []byte) (r, s, v *big.Int, err error)

func BytesToPrivateKey

func BytesToPrivateKey(key []byte, curve elliptic.Curve) *ecdsa.PrivateKey

BytesToPrivateKey 。

func BytesToPublicKey

func BytesToPublicKey(curve elliptic.Curve, buff []byte) *ecdsa.PublicKey

BytesToPublicKey .

func PrivateKeyBytes

func PrivateKeyBytes(priv *ecdsa.PrivateKey) (b []byte)

PrivateKeyBytes 。

func PublicKeyBytes

func PublicKeyBytes(pub *ecdsa.PublicKey) []byte

func Sig2Bytes

func Sig2Bytes(curve elliptic.Curve, r, s, v *big.Int) []byte

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL