bitcore-lib
bitcore-lib copied to clipboard
A pure and powerful JavaScript Bitcoin library
Single-character private key produces the following error: ```bash TypeError: Number can not be equal to zero, undefined, null or false at new PrivateKey (/test-bitcoin/node_modules/bitcore-lib/lib/privatekey.js:52:11) at Object. (/test-bitcoin/issue.js:4:13) at Module._compile (module.js:569:30)...
Hello guys, When I try to broadcast a transaction, I'm having this error: > /home/aziz/node_modules/bitcore-explorers/node_modules/bitcore-lib/lib/util/preconditions.js:14 > throw new errors.InvalidArgument(argumentName, message, docsPath); > ^ > Invalid Argument > Error > at...
Hello, I'm trying to create a module which generate addresses from my xpub. Currently I have this code ``` var bitcore = require('bitcore-lib'); var Address = bitcore.Address; var PublicKey =...
https://github.com/bitpay/bitcore-lib/blob/master/lib/transaction/transaction.js#L917 `Math.ceil(size / 1000)` returns `1` for transactions with size < 1KB. This will estimate a unnecessary high fee for small txs - [average tx size is around 530 bytes...
This change prevents large address versions (larger than 0x7fffffff) to be read as negative numbers and failing to lookup the correct network from the Networks map. Large address versions could...
Switches to use [libsecp256k1](https://github.com/bitcoin-core/secp256k1#libsecp256k1) for transactions signing, with [secp256k1](https://www.npmjs.com/package/secp256k1) as an optional dependency.
Will switch the property `prevHash` and `merkleRoot` to give back the expected byte order for `block.header.prevHash` with leading zeros on the left. Closes: https://github.com/bitpay/bitcore-lib/issues/54
This code will now create a compressed (and standardized) key: ``` js var privateKey = bitcore.PrivateKey.fromBuffer(crypto.randomBytes(32)); ``` Closes: https://github.com/bitpay/bitcore-lib/issues/91