asym

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 15 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenKeyStore added in v1.0.1

func GenKeyStore(priv crypto.PrivateKey, password string) (*crypto.KeyStore, error)

func GenerateKeyPair added in v1.0.1

func GenerateKeyPair(opt crypto.KeyType) (crypto.PrivateKey, error)

func PrivKeyToStdKey added in v1.0.1

func PrivKeyToStdKey(priv crypto.PrivateKey) (ecdsa2.PrivateKey, error)

PrivKeyToStdKey convert our crypto private key to golang standard ecdsa private key

func PrivateKeyFromStdKey added in v1.0.1

func PrivateKeyFromStdKey(priv crypto2.PrivateKey) (crypto.PrivateKey, error)

PrivateKeyFromStdKey convert golang standard crypto key to our private key

func PubKeyFromStdKey added in v1.0.1

func PubKeyFromStdKey(pub crypto2.PublicKey) (crypto.PublicKey, error)

func PubKeyToStdKey added in v1.0.1

func PubKeyToStdKey(pub crypto.PublicKey) (crypto2.PublicKey, error)

func RestorePrivateKey added in v1.0.1

func RestorePrivateKey(keyFilePath, password string) (crypto.PrivateKey, error)

func StorePrivateKey added in v1.0.1

func StorePrivateKey(priv crypto.PrivateKey, keyFilePath, password string) error

func Verify

func Verify(opt crypto.KeyType, sig, digest []byte, from types.Address) (bool, error)

Types

This section is empty.

Directories

Path Synopsis
secp256k1
Package secp256k1 wraps the bitcoin secp256k1 C library.
Package secp256k1 wraps the bitcoin secp256k1 C library.

Jump to

Keyboard shortcuts

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