Class: MigrateChangeAddress

MigrateChangeAddress(options)

Run change address migration. Applies to WalletDB v0

Constructor

new MigrateChangeAddress(options)

Create change address migration object.

Parameters:
Name Type Description
options WalletMigratorOptions
Source:

Members

options :WalletMigratorOptions

Type:
  • WalletMigratorOptions
Source:

Methods

(static) info()

Return info about the migration.

Source:

(static) layout() → {Object}

Get layout that migration is going to affect.

Source:
Returns:
Type
Object

(async) check() → {Promise.<MigrationType>}

Migration and check for the change address are done in the same step.

Source:
Returns:
Type
Promise.<MigrationType>

deriveKey(options) → {WalletKey}

Parameters:
Name Type Description
options Object
Source:
Returns:
Type
WalletKey

(async) hasPath(wid, hash) → {Promise.<Boolean>}

Parameters:
Name Type Description
wid Number
hash Hash
Source:
Returns:
Type
Promise.<Boolean>

(async) migrate(b, pending) → {Promise}

Actual migration

Parameters:
Name Type Description
b Batch
pending WalletMigrationResult
Source:
Returns:
Type
Promise

(async) migrateWallet(b, wid) → {Promise.<Number>}

Parameters:
Name Type Description
b Batch
wid Number
Source:
Returns:
Type
Promise.<Number>

readKey(br) → {HDPublicKey}

Parameters:
Name Type Description
br bio.BufferReader
Source:
Returns:
Type
HDPublicKey

(async) savePath(b, wid, path)

Parameters:
Name Type Description
b Batch
wid Number
path Path
Source: