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
Size: 8
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A BIP65 absolute lock-time encoding library.
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 }