Commit Graph

12 Commits

Author SHA1 Message Date
8eaae0b86a Give encode/decode functions more descriptive names
- `encode()`: Renamed to `int_to_base58()`.
- `decode()`: Renamed to `base58_to_int()`.
- Maintain aliases of old function names for backwards compatibility.
2018-11-18 22:17:56 +00:00
David McCanney
47c42ff4a5 Update to newer ES features
- Change var to const and let.
- Change arrays to spread syntax.
- Change to arrow functions.
2018-09-28 21:35:26 +01:00
5f6cc4c169 Use prettier for linting and code formatting via eslint 2017-08-20 19:23:27 +01:00
51d70572b1 Lint using semistandard 2017-07-09 19:41:48 +01:00
9edf3f1a2c Use soft-tabs instead of tabs, minor whitespace cleanup 2017-07-09 18:10:01 +01:00
louisbuchbinder
280b2a7461 remove large or negative number vulnerability 2017-07-09 09:16:52 -07:00
louisbuchbinder
4ff09a0d77 refactor to vanilla js 2017-07-08 09:03:31 -07:00
33ae17b282 Enable string value to be passed to Base58.encode() 2012-04-19 23:25:56 +01:00
2235cafbc0 Fix typo in error thrown by Base58.decode() 2012-04-19 23:10:07 +01:00
0dbaf8676d Ensure encode throws an error if receiving anything else than a integer 2012-04-19 23:09:10 +01:00
04918a627c Rename internal Base58 class to Base58Builder 2012-04-19 23:08:05 +01:00
ea136a08ff Initial import 2012-04-16 08:06:57 +01:00