Open truedat101 opened 6 years ago
NOTE, it looks like the NEM project is using Bouncy Castle and also a java wrapper around NACL.
Are all that features covered in libsodium, I mean, the SHA-3 algorithm and the checksum proccesses ?
Look at the api. My understanding is we have everything we need in libsodium, however, we need to perform steps 1-6 using those apis.
Moving this into next milestone.
I'm starting to generate some skeleton here and scratch the algorithm, based on the updates you @truedat101 made with genericHash.
I'm dealing with this now ! Following the implementation from the docs.
What about the step 1 on this ?
This is how Base32 encoding is treated.
@acehreli Take a look on what we found here :D A post of yours from some years ago, very awesome !
https://code.dlang.org/packages/base32
The link for Base32 from dub registry.
I got this error :
source/addresscore.d(28,8): Error: module base32 is in file 'base32.d' which cannot be read import path[0] = source/ import path[1] = ../../../../../.dub/packages/dddb-0.0.6/dddb/source/ import path[2] = ../../../../../.dub/packages/sodium-0.1.7/sodium/deimos import path[3] = /usr/include/dmd/phobos import path[4] = /usr/include/dmd/druntime/import
I runned dub run base32
and was included into the packages of the project.
You forgot to add to the dub.json dependency
@pedroalvesbatista I added the exact code used in the JS to do the public key generation from an address . See description.
Review NEM's approach: https://docs.nem.io/en/address-components/address-components-2 Review section 2.3 https://www.nem.io/wp-content/themes/nem/files/NEM_techRef.pdf
Steps:
This is the JS code directly out of their example in the documentation: