scure-base
scure-base copied to clipboard
Secure, audited & 0-deps implementation of bech32, base64, base32, base16 & base58
Received in v1.1.6 While debugging our project this package throws source map errors in dev tools: ``` Could not read source map for node_modules/%40scure/base/lib/index.js: ENOENT: no such file or directory,...
If your app has is bottlenecked because of scure-base, write a comment here. The current architecture is cool and readable, but not the fastest one. For example, `hex.decode` is slower...
The PR makes hex decoding 23x faster on 8KB inputs. The cost: +40 lines of code. Should we do it? Is hex a bottleneck?
I've used `convertRadix` function on the cashaddr implementation https://github.com/paulmillr/scure-base/pull/24 and it converts 5-bit number correctly according to the checksum tests. But I've faced with that simple test gives incorrect result:...
The table: https://github.com/multiformats/multibase/blob/master/multibase.csv
I don't want to interfere with the code base but it'd be useful to have this added [adapted from bitcoin core:](https://github.com/bitcoin/bitcoin/blob/7f0b79ea132d22ad5212c1d3ff4325715ca5ac12/src/bech32.cpp#L327) ```ts const INPUT_CHARSET = "0123456789()[],'/*abcdefgh@:$%{}" + "IJKLMNOPQRSTUVWXYZ&+-.;?!^_|~" + 'ijklmnopqrstuvwxyzABCDEFGH`#"\\...