bitcoinjs/bip65

Name: bip65

Owner: BitcoinJS

Description: A BIP65 absolute lock-time encoding library.

Created: 2018-02-01 01:22:57.0

Updated: 2018-02-01 01:27:43.0

Pushed: 2018-02-01 02:21:33.0

Homepage:

Size: 8

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

bip65

NPM Package Build Status js-standard-style

A BIP65 absolute lock-time encoding library.

Example
bip65 = require('bip65')

5.encode({ utc: 102 })
> TypeError: Expected Number utc >= 500000000

5.encode({ blocks: 1517448381 })
> TypeError: Expected Number Blocks < 500000000

5.encode({ blocks: 54 })
> 0x00000036

5.encode({ blocks: 200 })
> 0x000000c8

5.decode(0x00000036)
> { blocks: 54 }
LICENSE ISC

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.