Socket
Book a DemoInstallSign in
Socket

@samouraiwallet/varuint-bitcoin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@samouraiwallet/varuint-bitcoin

encode/decode number as bitcoin variable length integer

latest
npmnpm
Version
2.0.0
Version published
Weekly downloads
107
181.58%
Maintainers
1
Weekly downloads
 
Created
Source

@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, 0xffff]3
[0x010000, 0xffffffff]5
[0x0100000000, 0x1fffffffffffff]9

License

MIT

FAQs

Package last updated on 21 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts