Braydon Fuller
2bc76b1570
Unit test coverage for script interpreter verifyWitnessProgram
9 years ago
Braydon Fuller
09346a5dd2
Remove currently unused function witnessSignatureOperationsCount
9 years ago
Braydon Fuller
0007ffb8ed
Add unit tests for isWitnessProgram
9 years ago
Braydon Fuller
d40752ca94
Add more tests from bitcoin core
From commit bitcoin core 0.13.0 commit: a402396dce64c42ea73535b7dde4a9164d430438
In the file: src/test/transaction_tests.cpp
- pay-to-compressed publickey (v0)
- p2sh witness pay-to-compressed pubkey (v0)
- witness 2-of-2 multisig
- p2sh witness 2-of-2 multisig
9 years ago
Braydon Fuller
cf5a760919
Add test for "Witness pay-to-compressed-pubkey (v0)"
Using this code in the test to get test data:
```
string TxHexStr(CTransaction tx)
{
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
ssTx << tx;
std::string ssTxStr = ssTx.str();
return HexStr(ssTxStr);
}
std::cout << "scriptPubkey1: " + HexStr(scriptPubkey1) + "\n";
std::cout << "output1: " + TxHexStr(output1) + "\n";
```
From commit bitcoin core 0.13.0 commit: a402396dce64c42ea73535b7dde4a9164d430438
In the file: src/test/transaction_tests.cpp#L493
9 years ago
Braydon Fuller
42b3dc93d0
Switch segnet to testnet
9 years ago
Braydon Fuller
ce9d092a10
input: moved getSatoshisBuffer to general input
9 years ago
Braydon Fuller
c6079e9556
script: interpreter witness program fixes
9 years ago
Thomas Kerin
b0bbcb3dc7
test case of multisig|witness|p2sh
9 years ago
Thomas Kerin
b48bb42953
Add support for verifying segwit scripts
9 years ago
Thomas Kerin
1aa55790ae
Transaction.verifySignature(): no longer require satoshisBuffer param, can call Input method
9 years ago
Thomas Kerin
2b2ca0944a
Input: add getSatoshisBuffer method
9 years ago
Thomas Kerin
ad7785d3dd
Start of verification support
9 years ago
Braydon Fuller
ba54810df8
transaction: support nodejs 0.10.x for sighash witness
9 years ago
Braydon Fuller
95098e4dc0
transaction: transaction signing for nested p2sh witness
9 years ago
Braydon Fuller
93002249da
transaction: start to use new sighash for nested witness
9 years ago
Braydon Fuller
a8515ad81b
transaction: added new sighash for witness
9 years ago
Braydon Fuller
317d249758
input: added nested p2sh witness
9 years ago
Braydon Fuller
88aed87f91
script: added p2wsh and p2wpkh script identification methods
9 years ago
Braydon Fuller
1e749e0055
transaction: refactor witness properties
9 years ago
Braydon Fuller
cccf07674a
transaction: calculate witness hash
9 years ago
Braydon Fuller
2384164ab8
transaction: start to implement segwit serialization
9 years ago
Gabe Gattis
6d2472b782
Merge branch 'tx-block-ver-signed'
8 years ago
Chris Kleeschulte
3cd8de1d87
Merge pull request #120 from keepkey-builder/patch-1
Incorrect namespace for 'crypto' modules
8 years ago
KeepKey Pair Programmers
7bfcf4cf62
Incorrect namespace for 'crypto' modules
Use the correct namespace case for 'crypto' modules
8 years ago
Gabe Gattis
cc2c510e58
Merge branch 'patch-1'
9 years ago
Federico Bond
6dd38c160e
Fix typo in Script.getPublicKey
9 years ago
Thomas Kerin
2bfb4ceb9e
Transaction and block version are signed integers
9 years ago
Gabe Gattis
764aa6d4e9
Merge branch 'gpg'
PR #85
9 years ago
Braydon Fuller
24df178a08
Add pgp key for @matiu
9 years ago
Braydon Fuller
cdb538b94e
Update gpg keys
9 years ago
Braydon Fuller
f6b0b14ac6
Bump package version to 0.13.19
9 years ago
Braydon Fuller
c9e056a0a3
Bump package version to 0.13.18
9 years ago
Braydon Fuller
9e82395e71
Merge pull request #80 from rubensayshi/classify-better
`Script.classify` should first check output types before checking input types
9 years ago
Braydon Fuller
7a56719c3c
Bump package version to 0.13.17
9 years ago
Ruben de Vries
b655659812
`Script.classify` should first check output types before checking input types.
9 years ago
Matias Alejo Garcia
d36f72857b
Merge pull request #31 from braydonf/rbf
Transaction: Added replace-by-fee (RBF) support
9 years ago
Braydon Fuller
6275689f05
Bump package version to 0.13.16
9 years ago
Matias Alejo Garcia
09893632c2
Merge pull request #60 from braydonf/sha512
crypto: switch to Node.js sha512
9 years ago
Braydon Fuller
514fc8d326
crypto: switch to Node.js sha512
The sha512 library has not been updated in quite some time. This switches to
use Node.js crypto for sha512 that will use crypto-browserify, and more
recently maintained sha.js for the browser build.
9 years ago
Matias Alejo Garcia
eab662c692
Merge pull request #58 from deoxen0n2/patch-1
Fix wrong property name in docs (Address.Pay2PubKeyHash)
9 years ago
Saran Siriphantnon
85666e92da
Fix wrong property name in docs (Address.Pay2PubKeyHash)
Hi,
There is no `Address.Pay2PubKeyHash` property, instead it's `Address.PayToPublicKeyHash`.
9 years ago
Braydon Fuller
7fb064bde0
Bump package version to 0.13.15
9 years ago
Braydon Fuller
b3b18d532f
Bump package version to 0.13.14
9 years ago
Braydon Fuller
8c948ef511
Merge pull request #51 from fanatid/fix/ecdsa-k
Fix K generator in ECDSA
9 years ago
Kirill Fomichev
3579305b5e
Fix K generator in ECDSA
9 years ago
Braydon Fuller
4430479cea
Bump package version to 0.13.13
9 years ago
Gabe Gattis
9702105ad9
Merge pull request #44 from braydonf/add-regtest
Networks: Added regtest to networks
9 years ago
Braydon Fuller
0c983c9c4a
Networks: Added regtest to networks
Brings better compatibility between "testnet" and "regtest". Services such as
Bitcore Wallet Service and wallets such as Copay that have "testnet" and not
"regtest" will be compatible with "regtest" if enabled in a Bitcore node. This
adds two new API methods to enable/disable regtest on the testnet network:
- `bitcore.Networks.enableRegtest()`
- `bitcore.Networks.disableRegtest()`
9 years ago
Braydon Fuller
8bd466373e
Merge pull request #40 from fanatid/fix/opcode-smallint
Fix Opcode.smallInt
9 years ago