Module: wallet/common

Methods

(static) isName(key) → {Boolean}

Test whether a string is eligible to be used as a name or ID.

Parameters:
Name Type Description
key String
Source:
Returns:
Type
Boolean

(static) sortCoins(txs) → {Array.<Coin>}

Sort an array of coins by height.

Parameters:
Name Type Description
txs Array.<Coin>
Source:
Returns:
Type
Array.<Coin>

(static) sortDeps(txs) → {Array.<TX>}

Sort an array of transactions in dependency order.

Parameters:
Name Type Description
txs Array.<TX>
Source:
Returns:
Type
Array.<TX>

(static) sortTX(txs) → {Array.<TX>}

Sort an array of transactions by time.

Parameters:
Name Type Description
txs Array.<TX>
Source:
Returns:
Type
Array.<TX>