asym

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: Apache-2.0 Imports: 8 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert2StdPrivateKey

func Convert2StdPrivateKey(privKey crypto.PrivateKey) crypto2.PrivateKey

func GenerateKey

func GenerateKey(opt AlgorithmOption) (crypto.PrivateKey, error)

func Verify

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

Types

type AlgorithmOption

type AlgorithmOption int
const (
	// RSA is an enum for the supported RSA key type
	RSA AlgorithmOption = iota
	// ECDSASecp256k1 is an enum for the supported ECDSA key type
	ECDSASecp256k1
	// ECDSASecp256r1 is an enum for the supported ECDSA key type
	ECDSASecp256r1
	// Ed25519 is an enum for the supported Ed25519 key type
	Ed25519
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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