-
Notifications
You must be signed in to change notification settings - Fork 156
Open
Description
I am trying to implement Nervos address generation from public key in C. While following the steps mentioned in RFC, I am unable to generate the correct address. Are there any detailed examples showcasing intermediate values, so I can debug my logic?
I referenced this python demo and js sdk to verify the logic.
Example:
Address format - testnet short address
PK: 038ab113db7fc7af23b104a839c5c2e33e4b6b791d0589c3030f1eb7b819c17b82
args: adf33350760d7d939935c48751886ad55506c741
Desired address(generated from sdk): ckt1qyq2muen2pmq6lvnny6ufp633p4d24gxcaqswv6xlr
How do I generate the address mentioned ^? Since I am implementing it in C, I cannot use libraries from other languages. Is there any demo C implementation logic for the same?
Also are there any recommended C libraries for steps in generating address? (PK -> blake160(PK) -> payload -> address )
TIA
Metadata
Metadata
Assignees
Labels
No labels