ross-weir / wallet-ex

1 stars 0 forks source link

Refactor derivation / Remove `hdStandard` from wallet entity #24

Open ross-weir opened 2 years ago

ross-weir commented 2 years ago

Address deriviation doesn't make sense to be at a wallet level.

For example the wallet should be able to support "standard" P2PKH derivaiton (BIP-44/EIP-3) and also deriviation for other purposes like BIP-47 (reusable payment addresses).

ross-weir commented 2 years ago

Currently address deriviation is coupled to Ergo.

When deriving a new address maybe something like this well be more flexible:

wallet.deriveAddress(blockchain, purpose, args<T>) where T is dependant on the blockchain and the purpose.

Examples of values: