p256

package
v0.0.0-...-0ed12b1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DerSignatureLength = 72 + 1

Variables

This section is empty.

Functions

func Ecrecovery

func Ecrecovery(data, rawSign []byte) ([]*ecdsa.PublicKey, error)

func MarshalPubKey

func MarshalPubKey(k *ecdsa.PublicKey) []byte

func SamePubKey

func SamePubKey(key1, key2 *ecdsa.PublicKey) bool

func ToECDSA

func ToECDSA(hexString string) (*ecdsa.PrivateKey, error)

func UnmarshalPubKey

func UnmarshalPubKey(pub []byte) (*ecdsa.PublicKey, error)

func UnmarshalSig

func UnmarshalSig(b []byte) (*big.Int, *big.Int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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