dominant-strategies / quais.js

JavaScript library for interacting with Quai Network.
MIT License
2 stars 5 forks source link

[Quais] - Analyze convenience of keeping record for HDNode per account #196

Closed alejoacosta74 closed 2 months ago

alejoacosta74 commented 3 months ago

Currently the HD Wallets keep a map of HDNodeWallet per account:

    // Map of account number to HDNodeWallet
    protected _accounts: Map<number, HDNodeWallet> = new Map();

Since the information of available accounts is already contained on NeuteredAddressInfo, and the wallet contains a _root HD node, the wallet features can be implemented easily without using the _accounts map.