Open ross-weir opened 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:
blockchain = SupportedBlockchain.Ergo
purpose = generalAddress | stealthAddress | etc
args = addressIndex, accountIndex, etc
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).