Closed theanmolsharma closed 4 months ago
Does this mean we store address:path
in wdb.A
and path:address
in wdb.P
. Isnt this data duplication and if one of these is most commonly used can we just store that and if needed iterate over all db entries to get the other one?
i
, return address at indexi
from db. Generate and save the address at indexi + 10
P
tosrc/wallet/db/level/layout.ts
saveAddress()
to storepath
(key) andaddress
(value)getAddress()
togetPathFromAddress()
getAddressFromPath()