@samouraiwallet/varuint-bitcoin

2.0.0 • Public • Published

@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

value storage length (bytes)
[0, 0xfd) 1
[0xfd, 0xffff] 3
[0x010000, 0xffffffff] 5
[0x0100000000, 0x1fffffffffffff] 9

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @samouraiwallet/varuint-bitcoin

Weekly Downloads

182

Version

2.0.0

License

MIT

Unpacked Size

6.76 kB

Total Files

5

Last publish

Collaborators

  • pajasevi