secp256k1

package
v0.11.9 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrivKeyToAddress added in v0.8.0

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 added in v0.8.0

func PrivKeyToSdkPrivKey(privKey []byte) cryptotypes.PrivKey

func PubKeyToAddress added in v0.8.0

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

func PubKeyToSdkPubKey added in v0.8.0

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