Giter Club home page Giter Club logo

Comments (1)

refi93 avatar refi93 commented on August 11, 2024 1

@Josema short answer: Yes, they should be the same, it is a known issue and it will be fixed in the next major release (work in progress on develop branch). But I will elaborate a bit more on that so you won't be misled that CardanoLite and Daedalus always generate the same addresses so below is a more thorough explanation:

First, I would like to clarify how address generation in Daedalus and Cardanolite works:
Cardanolite should generate addresses deterministically from index 0' (first hardened index), increasing the index by one with each following address. Daedalus, on the other hand, generates the receive addresses randomly, only the first address happens to be deterministically picked and it should also be 0', but the remaining "receive" addresses you generate in Daedalus are randomly picked and therefore are not reachable from CardanoLite, unless you are "lucky" and Daedalus randomly generates the next receive address and it would have a low derivation index, let's say 2' or 3', which is really a negligible probability. We had to make this trade off (generating addresses deterministically instead of randomly) to make the wallet recoverable online in real time, but since Daedalus during recovery scans the whole blockchain, the CardanoLite wallet is still recoverable in Daedalus (but not vice versa).

I "unpacked" your Daedalus address and I see that you are talking precisely about the first one you see after creating a new wallet - so yes, it should coincide with the first address in CardanoLite. On the master branch of CardanoLite currently the address generation is shifted by one (caused by a misunderstanding of Daedalus/Cardano-SL code back then) so that's why they are different now (the CardanoLite address you referenced has child index 1'), but in the next major release it will be fixed and you will see the 0' address as the first one in CardanoLite. But it is important to understand that only the first address in CardanoLite and Daedalus will coincide since from that point on the addresses are generated differently in Daedalus and Cardanolite.

Here are some links that may be helpful:
compatibility between CardanoLite and Daedalus -> https://github.com/vacuumlabs/cardanolite/wiki/CardanoLite-FAQ#daedalus-compatibility
how derivation of addresses works -> https://cardanodocs.com/technical/hd-wallets/
how addresses are packed and unpacked -> https://cardanodocs.com/cardano/addresses/

from adalite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.