ecdsa

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAddressFromKeyStoreFile

func GetAddressFromKeyStoreFile(keyStoreFile string) (gethcommon.Address, error)

GetAddressFromKeyStoreFile We are using Web3 format defined by https://ethereum.org/en/developers/docs/data-structures-and-encoding/web3-secret-storage/

func ReadKey

func ReadKey(keyStoreFile string, password string) (*ecdsa.PrivateKey, error)

func WriteKey

func WriteKey(path string, privateKey *ecdsa.PrivateKey, password string) error

WriteKey writes the private key to the given path The key is encrypted using the given password This function will create the directory if it doesn't exist If there's an existing file at the given path, it will be overwritten

func WriteKeyFromHex

func WriteKeyFromHex(path, privateKeyHex, password string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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