Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt for SPV #16

Closed
wants to merge 118 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
063ce75
Test that transactions are being processed
christosporios May 15, 2017
c1cce13
Implement trust-increasing transaction parsing
christosporios May 15, 2017
00e4c46
Implement TrustIsRisk.prototype.getDirect()
christosporios May 17, 2017
913fd8d
Implement trust decreasing transaction parsing
christosporios May 18, 2017
14b48e5
Implement MaxFlow-based indirect trust inference
christosporios May 22, 2017
e7e4f84
Implement .getTrustIncreasingMTX()
christosporios May 26, 2017
7d44250
Use conscise should syntax
christosporios May 26, 2017
23d9a4b
Implement .getTrustDecreasingMTXs()
christosporios May 27, 2017
bdee7b0
Implement trust stealing
christosporios May 27, 2017
885d11f
Implement a complete end to end regtest test
christosporios May 29, 2017
eeff57a
Use ESLint, fix style issues
christosporios May 29, 2017
d28d1b6
Refactor: use consistent variable names
christosporios May 29, 2017
22fa3c4
Add Travis CI
christosporios May 29, 2017
a863ee7
Merge branch 'parse-tx' into tx-creation
christosporios May 29, 2017
0c7d90d
Fix indentation in .eslintrc
christosporios May 29, 2017
9e2f03c
Code review responses
christosporios Jul 11, 2017
2feb00a
Merge branch 'tx-creation' of github.com:decrypto-org/TrustIsRisk.js …
christosporios Jul 11, 2017
d9d073a
Move fixtures to separate fixtures file.
christosporios Sep 11, 2017
8df2ff5
Remove compiled files from repo; Minor code review fixes
christosporios Sep 11, 2017
86a512c
More CR responses.
christosporios Sep 11, 2017
8f25118
More CR fixes.
christosporios Sep 11, 2017
ba908f5
Fix bcoin version 1.0.0-beta.12
christosporios Sep 11, 2017
0927949
Rename "OneOfTwo" to "OneOfThree"
OrfeasLitos Sep 5, 2017
977df8d
Add provisional tag
OrfeasLitos Sep 5, 2017
f815dc0
Check trustisrisk tag in trust increasing MTX
OrfeasLitos Sep 5, 2017
e36468c
Add provisional tag
OrfeasLitos Sep 5, 2017
3a7eea6
Add tag to trust increasing MTX
OrfeasLitos Sep 5, 2017
6efd6fe
Turn tag from String to Buffer
OrfeasLitos Sep 7, 2017
f568294
Comment out "trustisrisk" tag creation commands
OrfeasLitos Sep 7, 2017
89b25a0
Random change
OrfeasLitos Sep 7, 2017
81e7df4
Comment out "trustisrisk" tag in test
OrfeasLitos Sep 7, 2017
f0b1880
Replace "equal" with "deepEqual"
OrfeasLitos Sep 7, 2017
826cd8e
Add tag to getTrustDecreasingMTX()
OrfeasLitos Sep 7, 2017
8c369e5
Add provisional "trustisrisk" tag
OrfeasLitos Sep 7, 2017
e6ec7f0
Add tag to getOneOfThreeMultisigOutput()
OrfeasLitos Sep 7, 2017
5d35bc8
Add publicKeyArray which contains "Trust is Risk"
OrfeasLitos Sep 8, 2017
f498dd8
Add public key to addres conversion
OrfeasLitos Sep 9, 2017
ac64cfc
Replace buffer.Buffer with Buffer
OrfeasLitos Sep 9, 2017
b2f2b31
Require crypto and base58 from bcoin
OrfeasLitos Sep 9, 2017
247dc43
Set i in {crypto,base58} as bcoin.$i
OrfeasLitos Sep 9, 2017
274ec2a
Use hash160/256 instead of ripemd/sha
OrfeasLitos Sep 9, 2017
ca938c3
Rename publicKey to pubKey
OrfeasLitos Sep 9, 2017
f695312
Convert step2 string to buffer
OrfeasLitos Sep 9, 2017
bfba382
Replace hash256 with two sha256
OrfeasLitos Sep 10, 2017
e07ad9d
Remove "bcoin." before "crypto"
OrfeasLitos Sep 10, 2017
439581e
Use "bcoin.crypto.hash256()"
OrfeasLitos Sep 10, 2017
d955c4f
Add "hash256()" type
OrfeasLitos Sep 10, 2017
13bee49
Add missing comma (,)
OrfeasLitos Sep 10, 2017
3b0a699
Add "base58()" type
OrfeasLitos Sep 10, 2017
0f75dd2
Make all steps' types buffers
OrfeasLitos Sep 10, 2017
3fc5f18
Replace "Address" with "bcoin$Address"
OrfeasLitos Sep 10, 2017
58aa495
Replace "bcoin$Address" with "Buffer"
OrfeasLitos Sep 10, 2017
6e925ef
Use tag creation from src/trust_is_risk.js
OrfeasLitos Sep 10, 2017
619274a
Remove commented out lines
OrfeasLitos Sep 10, 2017
821feaf
Rename "publicKeyArray" to "pubKeyArray"
OrfeasLitos Sep 10, 2017
73ec9ca
Rename "pubKey" to "fakePubKey"
OrfeasLitos Sep 10, 2017
9fb9eaa
Make fakePubKeyArray preetier
OrfeasLitos Sep 10, 2017
e4e9b9d
Add TODO comment to check tag
OrfeasLitos Sep 10, 2017
764dcc4
Replace tabs with spaces
OrfeasLitos Sep 11, 2017
33387a8
Turn tag from string to Buffer
OrfeasLitos Sep 11, 2017
fa7d3b8
Indent
OrfeasLitos Sep 11, 2017
95896bb
Add tag validity and content tests
OrfeasLitos Sep 11, 2017
152302d
Accept small identation
OrfeasLitos Sep 11, 2017
1ffb083
Use should instead of assert()
OrfeasLitos Sep 11, 2017
ba456d8
Use wallet.getKey instead of httpWallet.getKey
OrfeasLitos Sep 11, 2017
7675547
Replace equal with exist
OrfeasLitos Sep 11, 2017
c536458
Make fake public key preetier
OrfeasLitos Sep 11, 2017
d1a761a
Remove unneeded crypto and base58 vars
OrfeasLitos Sep 11, 2017
f0b0c69
Add "HDPublicKey" type
OrfeasLitos Sep 11, 2017
15d2500
Require "assert"
OrfeasLitos Sep 11, 2017
a2680bb
Replace "should" with "assert"
OrfeasLitos Sep 11, 2017
35ab49a
Play with Address to Public Key function
OrfeasLitos Sep 11, 2017
8fbcd6f
Add package-lock.json
OrfeasLitos Sep 12, 2017
037189b
Remove unneeded requires
OrfeasLitos Sep 12, 2017
3a9c031
Prepend "Address" with "bcoin.primitives."
OrfeasLitos Sep 12, 2017
88a190a
Remove HDPublicKey
OrfeasLitos Sep 12, 2017
78fed48
Add secp256k1
OrfeasLitos Sep 12, 2017
7f76659
Add fakePubKey verification test
OrfeasLitos Sep 12, 2017
86ea4bc
Remove ".ok" from "assert"
OrfeasLitos Sep 12, 2017
5457bda
Replace "fromString" with "fromBase58", comment
OrfeasLitos Sep 12, 2017
32085a9
Verify fake public key correctly
OrfeasLitos Sep 13, 2017
52cf7d6
Remove old fake public key
OrfeasLitos Sep 13, 2017
db912b5
Add tag generator
OrfeasLitos Sep 13, 2017
d96f244
Use valid fake public key
OrfeasLitos Sep 13, 2017
8235022
Remove TODO
OrfeasLitos Sep 15, 2017
caab3be
Use "should" syntax instead of "assert"
OrfeasLitos Sep 15, 2017
fb6b246
Add test that fakePubKey is a buffer
OrfeasLitos Sep 15, 2017
bb09e21
Simplify tag creation from key
OrfeasLitos Sep 15, 2017
d13061e
Add getAddress() type
OrfeasLitos Sep 15, 2017
2c60c69
Remove last test in tag
OrfeasLitos Sep 15, 2017
907170d
Add spv_node.js
OrfeasLitos Sep 17, 2017
37fb6f4
Add SPVNode types and refs to relevant files
OrfeasLitos Sep 17, 2017
6b0112b
Add pool.watchAddress() function type
OrfeasLitos Sep 18, 2017
63cc3b8
Add tag
OrfeasLitos Sep 18, 2017
1704b56
Add tag to Bloom filter
OrfeasLitos Sep 18, 2017
6cd6779
Add SPV node test file
OrfeasLitos Sep 18, 2017
8a89d63
Put tag in TrustIsRisk constructor
OrfeasLitos Sep 19, 2017
5aeb1fc
Separate type declarations and assignments
OrfeasLitos Sep 19, 2017
d572b77
Use tag from TrustIsRisk class
OrfeasLitos Sep 19, 2017
14f7cb7
Add console capability
OrfeasLitos Sep 20, 2017
a932ed3
Run npm install
OrfeasLitos Sep 20, 2017
df25421
Create short tag and public key
OrfeasLitos Sep 20, 2017
e393d85
Use short tag and public key
OrfeasLitos Sep 20, 2017
c93bcf3
Break down commands into smaller pieces
OrfeasLitos Sep 20, 2017
b814796
Rename tag vars for clarity
OrfeasLitos Sep 20, 2017
fb33b3a
Use tag instead of shortTag
OrfeasLitos Sep 20, 2017
3fe3c7e
Use public key instead of tag
OrfeasLitos Sep 20, 2017
3ebc94b
Reorder commands for ease of use
OrfeasLitos Sep 20, 2017
9488f7f
Replace public keys with tags
OrfeasLitos Sep 20, 2017
3c7517b
Group uncompressed together
OrfeasLitos Sep 20, 2017
1ed0e59
Hide spv_node.js temporarily
OrfeasLitos Sep 22, 2017
c291ec9
Use uncompressedFakePubKey instead of tag
OrfeasLitos Sep 22, 2017
e7cb2fd
Replace tag with fakePubKey
OrfeasLitos Sep 22, 2017
14efb8a
Remove "uncompressed" from fakePubKey*
OrfeasLitos Sep 22, 2017
16ef72c
Bring back spv_node.js test from hiding
OrfeasLitos Sep 22, 2017
7216d41
Replace "new Buffer" with "Buffer.from"
OrfeasLitos Sep 23, 2017
4f59609
Remove spv_node.js files
OrfeasLitos Sep 23, 2017
8639115
Remove commented out lines
OrfeasLitos Sep 25, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"parser": "babel-eslint",
"plugins": [
"eslint-plugin-flowtype"
],
"env": {
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:flowtype/recommended"
],
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"flowtype/space-before-type-colon": 0,
"no-undef": 0,
"no-unused-vars": 0,
"no-console": 0
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
lib/
*.swp
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: node_js
node_js:
- "7"

install:
- npm install
script:
- npm run check
Loading