bitcoinjs / bs58check Goto Github PK
View Code? Open in Web Editor NEWA straight forward implementation of base58check extending upon bs58.
License: MIT License
A straight forward implementation of base58check extending upon bs58.
License: MIT License
Example
var bs58check = require('bs58check')
var decoded ='18e559fc6cb0e8de2ce8b50007d474a0d886208e698a07948671e0df520c1525';
console.log(bs58check.encode(decoded))
ERROR "TypeError: buf.copy is not a function".
PS: see also http://stackoverflow.com/q/43599252/287948
var bs58check = require('base58check');
console.log(bs58check.decode('5Kd3NBUAdUnhyzenEwVLy9pBKxSwXvE9FMPyR4UKZvpe6E3AgLr'));
$ ./node_modules/.bin/browserify -s size size.js | ./node_modules/.bin/minify > size.min.js && du -h size.min.js
320K size.min.js
Please fix URLs in package.json
OOI: why this repo in bitcoinjs org? not in cryptocoinjs?
I think isValid
it will be helpful, if you agree, I add this feature to base-x
, and to bs58
bs58check
.
3.0.1 returning a Unit8Array instead of a Buffer broke our node.js application.
It's a bit frustrating there is no changelog indicating the new version no longer returns a buffer. And the example still shows a Buffer being returned. I had to check the commits to track down the cause.
I'm suggesting these because they are the labels that I've seen used most often. Either use the full description "base58check" or abbreviate "base" as "b" instead of "bs".
https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses
converting:
00010966776006953D5567439E5E39F86A0D273BEED61967F6
to:
16UwLL9Risc3QfPqBUvKofHmBQ7wMtjvM
does not work -_-
I have a feeling that the address is wrong on the website though. Just checking.
I get this:
csU3KSAQMEYLPudM8UWJVxFfptcZSDvXF1LYM
I don't know why this didn't happened earlier. It's very common operation (as rmd160(sha256(x))
, probably also need own module?). We can put this package to crypto-browserify
cryptocoinjs
org.
Thoughts about custom checksum function as optional argument?
for example Decred uses double blake256 instead double sha256
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.