开发者社区> 镜像站> NPM> bip65
bip65
A BIP65 absolute lock-time encoding library.
Last updated 3 years ago by dcousens .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bip65 
SYNC missed versions from official npm registry.

bip65

NPM Package Build Status js-standard-style

A BIP65 absolute lock-time encoding library.

Example

let bip65 = require('bip65')

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

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

bip65.encode({ blocks: 54 })
// => 0x00000036

bip65.encode({ blocks: 200 })
// => 0x000000c8

bip65.decode(0x00000036)
// => { blocks: 54 }

LICENSE ISC

Current Tags

  • 1.0.3                                ...           latest (3 years ago)

4 Versions

  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago