Documentation ¶
Index ¶
- type WalletFile
- func NewWalletFileCustomBytesLight(password string, privateKey []byte) WalletFile
- func NewWalletFileCustomBytesStandard(password string, privateKey []byte) WalletFile
- func NewWalletFileLight(password string, keypair *secp256k1.KeyPair) WalletFile
- func NewWalletFileStandard(password string, keypair *secp256k1.KeyPair) WalletFile
- func ReadWalletFile(jsonWallet []byte, password []byte) (WalletFile, error)
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)
Click to show internal directories.
Click to hide internal directories.