secp256k1

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountHex

func AccountHex(publicKey []byte) string

AccountHex generates the accountHex for the Secp256K1 public key

func ExportPrivateKeyInPem

func ExportPrivateKeyInPem(privateKey []byte) []byte

ExportPrivateKeyInPem expects the private key encoded in pem

func ExportPublicKeyInPem

func ExportPublicKeyInPem(publicKey []byte) []byte

ExportPublicKeyInPem exports the public key encoded in pem

func ParseKeyFiles

func ParseKeyFiles(pubKeyPath, privKeyPath string) keypair.KeyPair

func ParseKeyPair

func ParseKeyPair(publicKey, privateKey string) keypair.KeyPair

ParseKeyPair constructs keyPair from public key and private key

func ParsePrivateKey

func ParsePrivateKey(pemEncoded string) []byte

func ParsePrivateKeyFile

func ParsePrivateKeyFile(path string) []byte

func ParsePublicKey

func ParsePublicKey(pemEncodedPub string) []byte

func ParsePublicKeyFile

func ParsePublicKeyFile(path string) []byte

func Secp256k1Random

func Secp256k1Random() keypair.KeyPair

Types

This section is empty.

Jump to

Keyboard shortcuts

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