cardano-python icon indicating copy to clipboard operation
cardano-python copied to clipboard

Generating Addresses

Open torphix opened this issue 4 years ago • 2 comments

Hi :) Thanks for the library.. Is there a way to generate more than the default number of addresses? Also Once an address gets used are more generated automatically?

I looked through the cardano-cli docs but couldn't find anything.. Thank you

torphix avatar Sep 14 '21 08:09 torphix

Address generation is currently done by the backend entirely. That means, with cardano-wallet you'll get a pool of pre-generated addresses and while they are being used, new ones are being generated. Your guess is correct, although I can't provide you with technical details.

Python-based address generation is a must but I stumbled upon strange obstacles. It seems the bech32 algorithm used in Cardano is somewhat different from the one in Bitcoin. If you find any docs (or ideally a Python implementation) of this bech32 flavor, I'll be happy to add it.

emesik avatar Sep 14 '21 09:09 emesik

Thanks for your reply ill look into finding this alternate bech32 algorithm I had a small peak at the docs during my lunch break and found this https://developers.cardano.org/docs/get-started/cardano-serialization-lib/generating-keys/ will take a deeper dive this evening and see if theres anything here that can be leveraged.. Thanks for you help :)

torphix avatar Sep 14 '21 10:09 torphix