keystorev3

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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

func NewWalletFileCustomBytesStandard

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