secrets

package
v0.0.0-...-2c9d471 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StoreEthereumWallet

func StoreEthereumWallet(
	ethereumPrivateKey string,
	walletPassphrase string,
	ethWalletPath string,
) error

func ValidateCometPublicKeyAndAddressWithPrivateKey

func ValidateCometPublicKeyAndAddressWithPrivateKey(publicKey string, address string, privateKey string) error

func ValidateEthereumAddressWithPrivateKey

func ValidateEthereumAddressWithPrivateKey(hexAddress string, hexPrivateKey string) error

Types

type CometKeys

type CometKeys struct {
	Address    string `json:"address"`
	PublicKey  string `json:"public_key"`
	PrivateKey string `json:"private_key"`
}

func GenerateCometKeys

func GenerateCometKeys() CometKeys

type EthereumWalletPrivate

type EthereumWalletPrivate struct {
	Address    string `json:"address"`
	Mnemonic   string `json:"mnemonic"`
	Seed       string `json:"seed"`
	PrivateKey string `json:"private_key"`
}

func GenerateEthereumWallet

func GenerateEthereumWallet(
	mnemonic string,
	seed string,
	password string,
) (*EthereumWalletPrivate, error)

func GenerateNewEthereumWallet

func GenerateNewEthereumWallet() (*EthereumWalletPrivate, error)

Jump to

Keyboard shortcuts

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