digitalbazaar / base58-spec Goto Github PK
View Code? Open in Web Editor NEWThe Base58 Encoding Scheme
Home Page: https://digitalbazaar.github.io/base58-spec/
The Base58 Encoding Scheme
Home Page: https://digitalbazaar.github.io/base58-spec/
The algorithms in Sections 3 and 4 do not fully describe the encoding and decoding processes. They broadly follow the algorithms implemented in Bitcoin's source code [1], e.g. multiplying a byte value by 256 and adding it to a carry. However, the algorithms in the source code are based on two nested loops (e.g. the while loop on line 100 and the for loop on line 104) whereas the algorithms in the spec are based on a single loop.
I am working on a PR to fix this.
[1] https://github.com/bitcoin/bitcoin/blob/master/src/base58.cpp#L87
The [0x0000287fb4cd, 111233QC4] test appears to have an extra 1 in the encoded string. Shouldn't that be 11233QC4?
How many tests should be in the spec? Bitcoin code has some more:
https://github.com/bitcoin/bitcoin/blob/master/src/test/data/base58_encode_decode.json
Email seems a less efficient means of communication -- though it should be preserved as an option, for those who do not use github.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.