Manuel Araoz
149b7fafed
new error system with no code generation
10 years ago
Esteban Ordano
f3663e26d6
Don't add the same input twice
10 years ago
Elichai Turkel
b827e36e13
Added mempool request
I added `GetMempool` function that sends an 'mempool' request.
the answer will come in 'inv' message.
10 years ago
Esteban Ordano
41191a285f
Add alternative to create an Address
* When by error one has two instances of an address, an address
can't be instantiated from the other
10 years ago
Esteban Ordano
ca1d8e9eeb
Drop payment protocol submodule
10 years ago
Esteban Ordano
8d68e9cb02
Use satoshisBN internally
10 years ago
Esteban Ordano
4fba2bc86c
Drop all rpc code/docs
10 years ago
Esteban Ordano
bdeac4e67d
Add inspect method to output
10 years ago
Esteban Ordano
26e688ae06
Add .toScriptHashOut() to scripts
- Also sort gulpfile dependencies
10 years ago
Braydon Fuller
84cc1a0042
Indicate internal use of getID with an underscore.
10 years ago
Braydon Fuller
81fa162a7f
Fix .jshintrc and add missing semis
10 years ago
Braydon Fuller
b38f7fa319
Added getID to PublicKey
- Tests in BloomFilter in [bitcoin core](https://github.com/bitcoin/bitcoin/blob/master/src/test/bloom_tests.cpp#L85 ) use the CPubKey.GetID as input into the BloomFilter
- The hash is calculated when generating an Address however the hash itself is not currently available
10 years ago
Esteban Ordano
0f73c3f7a3
Throw error if dust amount is detected
10 years ago
Esteban Ordano
ff82ccec71
Return undefined instead of a null signature
10 years ago
Esteban Ordano
dc6ff32290
Make serialization roundtrip recover info about inputs
10 years ago
Esteban Ordano
d053599fd2
Improve test coverage
10 years ago
Esteban Ordano
fe86abc093
Add `change` when serializing transaction
10 years ago
Yemel Jardi
e57d02c03c
Use define immutable helper
10 years ago
Braydon Fuller
b6da2e87be
Export messages so that they can be extended from another module.
10 years ago
Yemel Jardi
e222ae08c4
fix typo
10 years ago
Braydon Fuller
8b505f0cfa
Fixed tests to handle a `defaultNetwork` change
- Updated tests to work for both 'testnet' and 'livenet' as the default network.
- Fixed a bug in Address where the network property was being set as a string.
- Fixed a bug in HDKeys to handle serialized keys when the defaultNetwork changed.
10 years ago
Braydon Fuller
bce28cd227
Fixed bug in IE11 that would cause MAX_MONEY verification test to fail.
10 years ago
Yemel Jardi
0beed6efa4
Refactor HDPublicKey path validation
10 years ago
Yemel Jardi
f78ebeb46c
Refactor HDPrivateKey path validation
10 years ago
Yemel Jardi
d369154162
Script: remember network when creating from address or pubkey
10 years ago
Braydon Fuller
ff4a6f549d
Fixed bugs in IE11
10 years ago
Braydon Fuller
a801663c6d
Fixed bug in Safari for PublicKey and Script instance checking in Address
10 years ago
Braydon Fuller
d2a2be7a93
Upgraded bn.js to fix public key calculation problem, restored crypto/point.js, and added additional tests.
10 years ago
Braydon Fuller
bc4e62ecd4
Fixed public key calculation by returning the elliptic ec.curve.g
10 years ago
Braydon Fuller
a1ee393dce
JSUtil: Return result quicker for isValidJSON and add additional tests.
10 years ago
Braydon Fuller
c20a0eabed
Check type of parsed JSON to determine it's an object and not a number.
10 years ago
Yemel Jardi
9f8e2c721f
fix typo
10 years ago
Yemel Jardi
ff844e9935
Change PrivateKey.toString from WIF to hex format
10 years ago
Yemel Jardi
98cfd646e7
Allow creating a new random testnet HDPrivate key
10 years ago
Yemel Jardi
2aa5c65945
Add validations to derivation path
10 years ago
Esteban Ordano
7fe17e1699
Move explorers inside transport
10 years ago
Esteban Ordano
7cf826249b
Add jsdocs and documentation to UnspenOutput and Insight
10 years ago
Esteban Ordano
11975bc0df
Rename UTXO to Transaction.UnspentOutput
10 years ago
Esteban Ordano
1cf108ab47
Add tests for UTXO
10 years ago
Esteban Ordano
476f009b4d
Add Insight and UTXO class
10 years ago
Yemel Jardi
9deec5e1c2
Use defaultNetwork in Script.toAddress
10 years ago
bip32JP
95bfb18849
Fix the error loop.
I added a similar badrs function to python-ecdsa and compared the results.
The 1 badrs (aka forcing it to loop once) gave me a different value. It turns out you missed one of the `v = hmac_k(v)` steps during the loop.
Adding one extra `v = hmac_k(v)` in each loop makes it match up with python-ecdsa perfectly (I even tried up to badrs = 30 and it was fine.
10 years ago
Esteban Ordano
901d836231
Add default network to PublicKey
Closes #871
10 years ago
Esteban Ordano
5ef9975ac5
Honor publicKey.network on create multisig address
Closes #870
10 years ago
Esteban Ordano
dbf47ef78f
transaction: better errors for signature methods
Closes #868
10 years ago
Yemel Jardi
d5f76e8517
Fix creation of a randomn testnet private key
10 years ago
Esteban Ordano
f74c7f3929
Simplify script to address method
10 years ago
Esteban Ordano
ffca4cfb6f
Fixes Script test case for coverage and style
10 years ago
Esteban Ordano
c1a1571535
Fix JSDoc for script
10 years ago
Esteban Ordano
d688222769
Add toAddress(network) functionality to scripts
10 years ago