bitpic protocol validation library.
npm install --save bitpic
You can pass in a raw transaction hex string to verify
bitpic.verify(<Raw Transaction Hex>).then((res) => {
// res := true|false
})
You can also pass in a BOB serialization format:
bitpic
.verify(<BOB Transaction Formatted JSON>, { format: "bob" })
.then((res) => {
// res := true|false
})
If you pass in an additional { cell: true }
option, it returns the matched cell within the parsed transaction:
bitpic
.verify(<BOB Transaction Formatted JSON>, { cell: true })
.then((res) => {
// res := <matched cell>|false
})
Find out some examples under the demo folder.