keystorev3

package
v1.1.19 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WalletFile

type WalletFile interface {
	PrivateKey() []byte
	KeyPair() *secp256k1.KeyPair
	JSON() []byte
	GetID() *fftypes.UUID
	GetVersion() int

	// Any fields set into this that do not conflict with the base fields (id/version/crypto) will
	// be serialized into the JSON when it is marshalled.
	// This includes setting the "address" field (which is not a core part of the V3 standard) to
	// an arbitrary string, adding new fields for different key identifiers (like "bjj" or "btc" for
	// different public key compression algos).
	// If you want to remove the address field completely, simple set "address": nil in the map.
	Metadata() map[string]interface{}
}

func NewWalletFileCustomBytesLight added in v1.1.14

func NewWalletFileCustomBytesLight(password string, privateKey []byte) WalletFile

func NewWalletFileCustomBytesStandard added in v1.1.14

func NewWalletFileCustomBytesStandard(password string, privateKey []byte) WalletFile

func NewWalletFileLight

func NewWalletFileLight(password string, keypair *secp256k1.KeyPair) WalletFile

func NewWalletFileStandard

func NewWalletFileStandard(password string, keypair *secp256k1.KeyPair) WalletFile

func ReadWalletFile

func ReadWalletFile(jsonWallet []byte, password []byte) (WalletFile, error)

Jump to

Keyboard shortcuts

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