Manuel Araoz
b61bd6f76a
add Script#isPushOnly()
2014-12-10 12:39:09 -03:00
Manuel Araoz
5bdda7c95b
tweak cyclomatic complexity jshint config
2014-12-10 12:37:45 -03:00
Manuel Aráoz
01b74b8df5
Merge pull request #695 from eordano/feature/errors
...
Add a preconditions module, and refactor errors
2014-12-10 12:35:31 -03:00
Esteban Ordano
ea17a6ace1
Add a preconditions module, and refactor errors
...
100% code coverage for the preconditions module.
Usage:
```
$.checkState(something === anotherthing, 'Expected something to be
anotherthing');
$.checkArgument(something < 100, 'something', 'must be less than 100');
$.checkArgumentType(something, PrivateKey, 'something'); // The third
argument is a helper to mention the name of the argument
$.checkArgumentType(something, PrivateKey); // but it's optional (will
show up as "(unknown argument)")
```
2014-12-10 11:56:38 -03:00
Manuel Aráoz
6727342202
Merge pull request #689 from eordano/feature/scriptOpcodeUpdate
...
Feature/script opcode update
2014-12-09 18:18:19 -03:00
Esteban Ordano
fd531de123
Update opcode and script transactions
2014-12-09 17:53:30 -03:00
Manuel Aráoz
22b1193e32
Merge pull request #688 from eordano/feature/addressMethods
...
Add check functions to Address
2014-12-09 17:51:25 -03:00
Manuel Aráoz
b8601ecd46
Merge pull request #690 from eordano/feature/miscupdates
...
Miscelaneus updates to docs and bufferreader/writer
2014-12-09 17:49:01 -03:00
Esteban Ordano
d40d19e631
Merge pull request #686 from maraoz/add/script-pkhi-tests
...
add script public key hash in tests
2014-12-09 17:35:40 -03:00
Esteban Ordano
3551742fee
Miscelaneus updates to docs and bufferreader/writer
2014-12-09 17:31:20 -03:00
Esteban Ordano
1816ba197f
Add check functions to Address
2014-12-09 17:25:36 -03:00
Manuel Araoz
ec00ccba4c
add script public key hash in tests
2014-12-09 16:11:57 -03:00
Manuel Aráoz
af0991fa6d
Merge pull request #685 from braydonf/bug/ecdsa-console
...
ECDSA: Remove console.log
2014-12-09 15:53:35 -03:00
Braydon Fuller
c86f6d68a9
ECDSA: Remove console.log
2014-12-09 13:51:10 -05:00
Manuel Aráoz
fb1978c5f5
Merge pull request #679 from eordano/feature/ecdsabackport
...
Backport changes to ECDSA from fullnode
2014-12-09 15:09:33 -03:00
Esteban Ordano
4879007bc7
Merge pull request #676 from braydonf/feature/block-handling-validation
...
Block: Added validation of proof of work, merkle tree and other interface changes. Closes #601
2014-12-09 13:54:31 -03:00
Esteban Ordano
4e9e89cdbf
Move license notes to LICENSE
2014-12-09 13:46:14 -03:00
Esteban Ordano
736bcd6bd4
Backport changes to ecdsa from fullnode
2014-12-09 12:01:52 -03:00
Manuel Aráoz
dcbd0738b0
Merge pull request #678 from eordano/feature/privkeyhex
...
Add functionality to create private key from a hex string
2014-12-09 11:48:40 -03:00
Esteban Ordano
f8397a617e
Add option to create private key from hex
2014-12-09 11:40:30 -03:00
Manuel Aráoz
55525db73e
Merge pull request #677 from eordano/feature/privpublickey
...
Add ".publicKey" property to PrivateKey
2014-12-09 11:31:06 -03:00
Esteban Ordano
baf6a24d23
Add ".publicKey" property to PrivateKey
2014-12-09 11:21:47 -03:00
Braydon Fuller
d1e8109a99
Merge pull request #672 from maraoz/script/docs
...
add Script dev guide
2014-12-08 16:15:11 -05:00
Braydon Fuller
5d1da9802c
Block: Added validation of proof of work, merkle tree and other interface changes. Closes #601
2014-12-08 14:51:43 -05:00
Manuel Araoz
27ed2a6ccd
add js tag to some code
2014-12-05 20:11:55 -03:00
Manuel Araoz
466208a8ec
add Script dev guide
2014-12-05 19:43:07 -03:00
Manuel Aráoz
5f4eb204b4
Merge pull request #670 from braydonf/bug/browser-build-speed
...
Tests: Speed up browser build
2014-12-05 12:23:24 -03:00
Braydon Fuller
bc8d5fddf4
Tests: Remove devDependency
2014-12-05 10:20:53 -05:00
Braydon Fuller
6299033e45
Tests: Add browser directory
2014-12-05 10:10:15 -05:00
Braydon Fuller
10a92cdebb
Tests: Remove devDependency and change to relative path names
2014-12-05 09:54:58 -05:00
Manuel Aráoz
33715a994e
Merge pull request #666 from braydonf/bug/public-key-validation
...
PublicKey: Add test to verify that both uncompressed an compressed keys validate.
2014-12-05 10:31:10 -03:00
Braydon Fuller
6902697383
Tests: Speed up browser build
2014-12-04 23:30:32 -05:00
Braydon Fuller
802a0a55dd
Merge pull request #662 from maraoz/script/improvements
...
Improve Script API
2014-12-04 18:23:25 -05:00
Manuel Araoz
58b43345c0
add docs
2014-12-04 18:39:13 -03:00
Manuel Araoz
f231f8a054
fix a browser test 2
2014-12-04 15:40:27 -03:00
Manuel Araoz
6c5198b743
fix a browser test
2014-12-04 15:38:46 -03:00
Manuel Araoz
d19ad6f384
remove commented code
2014-12-04 15:10:19 -03:00
Manuel Araoz
eaaab5c7d0
implement Script.buildScriptHashOut()
2014-12-04 15:06:56 -03:00
Manuel Araoz
4bca5316ea
implement Script.buildDDataOut()
2014-12-04 15:06:56 -03:00
Manuel Araoz
b87e687fd9
implement Script.buildPublicKeyHashOut()
2014-12-04 15:06:56 -03:00
Manuel Araoz
163925c754
implement Script.buildMultisigOut()
2014-12-04 15:06:56 -03:00
Manuel Araoz
7b54a53414
add Opcode.smallInt()
2014-12-04 15:06:56 -03:00
Manuel Araoz
4fae69807d
change isOpReturn to isDataOut
2014-12-04 15:06:56 -03:00
Manuel Araoz
d05aa27bed
finish all tests
2014-12-04 15:06:56 -03:00
Braydon Fuller
012466d411
PublicKey: Remove compressed boolean from validation, not nessassary.
2014-12-04 13:06:10 -05:00
Braydon Fuller
ae80ca8678
PublicKey: Add test to verify that both uncompressed an compressed keys validatate. Fixes #665
2014-12-04 12:47:59 -05:00
Manuel Aráoz
919a9e6383
Merge pull request #656 from braydonf/ref/payment-protocol
...
Refactor Payment Protocol. Closes #607
2014-12-04 13:37:31 -03:00
Braydon Fuller
64c0d5f942
Payment Protocol: Restore and reorganize files for payment protocol.
2014-12-04 10:43:40 -05:00
Esteban Ordano
1d2b746996
Remove gulp from npm install dependencies
2014-12-04 09:15:56 -03:00
Manuel Aráoz
cf0561b98e
Merge pull request #654 from eordano/fix/buildErrors
...
Fix Error issues and other issues found with packaging
2014-12-03 17:34:48 -03:00