2.0.0 • Published 1 year ago

@samouraiwallet/varuint-bitcoin v2.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@samouraiwallet/varuint-bitcoin

NPM Package

This is a fork of the original varuint-bitcoin library with minor changes:

  • codebase updated to use UInt8Array instead of Buffer - thus making this library browser-compatible without any shims
  • package type changed to ESModule instead of CommonJS
  • updated tests to reflect these changes

Original Readme

NPM Package Build Status

abstract-encoding

js-standard-style

encode/decode number as bitcoin variable length integer

valuestorage length (bytes)
[0, 0xfd)1
0xfd, 0xffff3
0x010000, 0xffffffff5
0x0100000000, 0x1fffffffffffff9

License

MIT

2.0.0

1 year ago