stacks-archive / stacks-transactions-js

The JavaScript library for generating Stacks 2.0 transactions
19 stars 17 forks source link

Address Generation #129

Closed AnasSaeed123 closed 3 years ago

AnasSaeed123 commented 3 years ago

I am integrating blockstack in OPOLO wallet. I have problem in generating address of blockstack in c language.

Which encoding is used in blockstack?

I am using base32_encode in c with alphabets given in stacks_transaction.js

friedger commented 3 years ago

it uses a base 32 encoding with checksum: https://github.com/blockstack/c32check/blob/master/src/address.ts

AnasSaeed123 commented 3 years ago

Is there any library available in c for base 32 encoding with checksum?

diwakergupta commented 3 years ago

Is there any library available in c for base 32 encoding with checksum?

Not that I know of. I'm sure the community would appreciate if someone were to build a C implementation! Note that we do have Rust code for this in stacks-blockchain; presumably you could reuse some of that to generate C-bindings. YMMV.

Either way, sounds like this can/should be closed?

agraebe commented 3 years ago

The account guide might have additional info that could help you @AnasSaeed123. I'm closing this. Please reopen if you have anything else.