Micah Riggan
|
dc5185544c
|
Removing hash cache
|
7 years ago |
Micah Riggan
|
103f4724e1
|
Keeping track of length, with es5 reduce
|
7 years ago |
Micah Riggan
|
083b993c79
|
Buffer writer keeps track of total length of buffer
|
7 years ago |
Micah Riggan
|
1186be59dc
|
Removing deprecated new Buffer()
|
7 years ago |
Micah Riggan
|
df5fcf2332
|
Switching deprecated buffer constructor to use Buffer.from
|
7 years ago |
Matias Alejo Garcia
|
1f2e3a35ea
|
fix tests / error messages
|
8 years ago |
Matias Alejo Garcia
|
4088499b54
|
updates to bn.js new api... umod = mod
|
8 years ago |
Matias Alejo Garcia
|
85be36114a
|
more lodash aliases
|
8 years ago |
Matias Alejo Garcia
|
88e76bd0dd
|
lodash fixes
|
8 years ago |
Matias Alejo Garcia
|
b061bed17c
|
WIP: updates lodash, bn and elliptic
|
8 years ago |
Jeff Garzik
|
68a79e3454
|
lib/util/preconditions: Directly use Buffer.isBuffer (Cordova, RN workaround)
Using "./buffer" fails on some browserify-esque platforms
such as Cordova and React.Native.
Fixes #108
|
8 years ago |
Gabe Gattis
|
cc764dbc2a
|
use higher default FEE_PER_KB and FEE_SECURITY_MARGIN
|
8 years ago |
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
|
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
|
7cdee7d1a5
|
remove hdkeycache
|
9 years ago |
Gabe Gattis
|
d9c295b2d8
|
revert change to privateKey.toBuffer(). Change will be delayed until v1.0.0
|
9 years ago |
Gabe Gattis
|
a963632287
|
remove nonCompliant argument from deriveChild, fix travis file
|
9 years ago |
Gabe Gattis
|
1b2c41978f
|
revert behavior of derive
|
9 years ago |
Gabe Gattis
|
a9aeada69e
|
remove hdkeycache
|
9 years ago |
Braydon Fuller
|
d32ae41adc
|
Change name of derive to deriveChild
This is to avoid any accidental upgrades to a bugfixed version without awareness of the change.
|
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 |
Braydon Fuller
|
6f1c782737
|
Improve transaction assertion messages
|
9 years ago |
Braydon Fuller
|
09d9e0291f
|
Throw error with invalid network
|
9 years ago |
Braydon Fuller
|
e9d1237228
|
Add toBufferNoPadding method to private key
|
9 years ago |
Braydon Fuller
|
d0e3f84104
|
Handle invalid public key derivation rather than throw error
|
9 years ago |
Braydon Fuller
|
0906d988ca
|
Handle edge case that invalid private key is derived
|
9 years ago |
Braydon Fuller
|
b79a9b274a
|
Fix implementation of hd derivation to be bip32 compliant
https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#child-key-derivation-ckd-functions
|
9 years ago |
Kirill Fomichev
|
8f51d4884e
|
Fix PrivateKey.toBuffer
|
9 years ago |
Filippo Merli
|
528f07f1b8
|
fixed filteredTxsHash If there is only one hash the filter do not match any txs in the block and should return a void aray
|
9 years ago |
Filippo Merli
|
070814b9b0
|
InvalidMerleTree error for MerkleBlock
|
9 years ago |