BlockchainCommons / GordianSeedTool-iOS

Cryptographic Seed Manager for iOS
Other
36 stars 8 forks source link

FEATURE: Support Aezeed seeds (LND lightning node) #126

Open jblachly opened 2 years ago

jblachly commented 2 years ago

LND uses 24 word Aezeed scheme which encodes 128 bits of entropy PLUS a wallet birthday (clocked against the genesis block) PLUS a version.

It would be nice to be able to back up the entropy in Gordian seed tool as a failsafe restoration method for a lightning node.

https://github.com/lightningnetwork/lnd/blob/master/aezeed/README.md

jblachly commented 2 years ago

In addition, this could auto-populate the "created" field in Gordian Seed tool, since the Aezeed encodes a wallet birthday

ChristopherA commented 2 years ago

When we last looked at LNDs seed scheme, no one else was using it, nor was there any signal that our patrons needed it any time soon.

It is still on my wish list, but to prioritize adding it against a large backlog of other features we’d need to know that others wallets fully supported it (a standard is not a truly standard until there are at least two heterogeneous implementations), and ideally that one of our GitHub sponsors was behind it.

I welcome if you’ve got time to document if other lightning wallets support it, or investigation if there are swift or c code libraries supporting it, or reaching to one of our existing sponsors to push for it on our roadmap, or helping us get the LND folk to become sponsors.

ChristopherA commented 2 years ago

Another factor with prioritizing this seed format is that it has never been formally documented, as far as I can tell it is only in the LND code as comments.

I asked @roasbeef about it three years ago and he replied about it in an email 2/19/2019:

Thanks for all the info! I can definitely have a BIP draft up by March 1st, a nice little forcing function to write it all down, since I've been wanting to do it for some time.

I've not seen a spec since — maybe it exists somewhere else, but a couple of different searches didn't find it.

I have added it officially to our "enhancement" roadmap for both Gordian Seed Tool & seedtool-cli, but it will likely continue to be a low priority until some of the above changes.

ChristopherA commented 2 years ago

Never mind on previous, Azseed has been documented (you shared the link!). I don't understand why searches didn't find it. Still the questions about others supporting it and libraries in c or swift, and needing some more signal from our ecosystem of its importance.

jblachly commented 2 years ago

To be fair, it is pretty inadequately documented. They really need to do a BIP or BOLT.