Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 788 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 788 Bytes

bitcoin-consensus-encoding

Build Status abstract-encoding

Abstract encoding for Bitcoin related objects

Usage

var codec = require('bitcoin-consensus-encoding')

console.log(codec.varInt.encode(1e8), codec.varInt.encode.bytes)
console.log(codec.string.encode("Hello world"), codec.string.encode.bytes)
console.log(codec.boolean.encode(true), codec.boolean.encode.bytes)

API

``

Install

npm install bitcoin-consensus-encoding

License

ISC