secp256k1

package
v0.0.0-...-811d2bd Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrivKeyToAddress

func PrivKeyToAddress(privKey []byte) types.Address

PrivKeyToAddress calculates the wallet address from the user's private key

func PrivKeyToPubKey

func PrivKeyToPubKey(privKey []byte) cryptotypes.PubKey

PrivKeyToPubKey returns the public key associated with the given private key

func PrivKeyToSdkPrivKey

func PrivKeyToSdkPrivKey(privKey []byte) cryptotypes.PrivKey

func PubKeyToAddress

func PubKeyToAddress(pubKey []byte) (*types.Address, error)

func PubKeyToSdkPubKey

func PubKeyToSdkPubKey(pubKey []byte) (cryptotypes.PubKey, error)

PubKeyToSdkPubKey converts pubKey bytes to a secp256k1 public key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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