-
Notifications
You must be signed in to change notification settings - Fork 6
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
Spv implementation #17
Open
OrfeasLitos
wants to merge
113
commits into
decrypto-org:tx-creation
Choose a base branch
from
OrfeasLitos:spv-implementation
base: tx-creation
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 96 commits
Commits
Show all changes
113 commits
Select commit
Hold shift + click to select a range
0927949
Rename "OneOfTwo" to "OneOfThree"
OrfeasLitos 977df8d
Add provisional tag
OrfeasLitos f815dc0
Check trustisrisk tag in trust increasing MTX
OrfeasLitos e36468c
Add provisional tag
OrfeasLitos 3a7eea6
Add tag to trust increasing MTX
OrfeasLitos 6efd6fe
Turn tag from String to Buffer
OrfeasLitos f568294
Comment out "trustisrisk" tag creation commands
OrfeasLitos 89b25a0
Random change
OrfeasLitos 81e7df4
Comment out "trustisrisk" tag in test
OrfeasLitos f0b1880
Replace "equal" with "deepEqual"
OrfeasLitos 826cd8e
Add tag to getTrustDecreasingMTX()
OrfeasLitos 8c369e5
Add provisional "trustisrisk" tag
OrfeasLitos e6ec7f0
Add tag to getOneOfThreeMultisigOutput()
OrfeasLitos 5d35bc8
Add publicKeyArray which contains "Trust is Risk"
OrfeasLitos f498dd8
Add public key to addres conversion
OrfeasLitos ac64cfc
Replace buffer.Buffer with Buffer
OrfeasLitos b2f2b31
Require crypto and base58 from bcoin
OrfeasLitos 247dc43
Set i in {crypto,base58} as bcoin.$i
OrfeasLitos 274ec2a
Use hash160/256 instead of ripemd/sha
OrfeasLitos ca938c3
Rename publicKey to pubKey
OrfeasLitos f695312
Convert step2 string to buffer
OrfeasLitos bfba382
Replace hash256 with two sha256
OrfeasLitos e07ad9d
Remove "bcoin." before "crypto"
OrfeasLitos 439581e
Use "bcoin.crypto.hash256()"
OrfeasLitos d955c4f
Add "hash256()" type
OrfeasLitos 13bee49
Add missing comma (,)
OrfeasLitos 3b0a699
Add "base58()" type
OrfeasLitos 0f75dd2
Make all steps' types buffers
OrfeasLitos 3fc5f18
Replace "Address" with "bcoin$Address"
OrfeasLitos 58aa495
Replace "bcoin$Address" with "Buffer"
OrfeasLitos 6e925ef
Use tag creation from src/trust_is_risk.js
OrfeasLitos 619274a
Remove commented out lines
OrfeasLitos 821feaf
Rename "publicKeyArray" to "pubKeyArray"
OrfeasLitos 73ec9ca
Rename "pubKey" to "fakePubKey"
OrfeasLitos 9fb9eaa
Make fakePubKeyArray preetier
OrfeasLitos e4e9b9d
Add TODO comment to check tag
OrfeasLitos 764dcc4
Replace tabs with spaces
OrfeasLitos 33387a8
Turn tag from string to Buffer
OrfeasLitos fa7d3b8
Indent
OrfeasLitos 95896bb
Add tag validity and content tests
OrfeasLitos 152302d
Accept small identation
OrfeasLitos 1ffb083
Use should instead of assert()
OrfeasLitos ba456d8
Use wallet.getKey instead of httpWallet.getKey
OrfeasLitos 7675547
Replace equal with exist
OrfeasLitos c536458
Make fake public key preetier
OrfeasLitos d1a761a
Remove unneeded crypto and base58 vars
OrfeasLitos f0b0c69
Add "HDPublicKey" type
OrfeasLitos 15d2500
Require "assert"
OrfeasLitos a2680bb
Replace "should" with "assert"
OrfeasLitos 35ab49a
Play with Address to Public Key function
OrfeasLitos 8fbcd6f
Add package-lock.json
OrfeasLitos 037189b
Remove unneeded requires
OrfeasLitos 3a9c031
Prepend "Address" with "bcoin.primitives."
OrfeasLitos 88a190a
Remove HDPublicKey
OrfeasLitos 78fed48
Add secp256k1
OrfeasLitos 7f76659
Add fakePubKey verification test
OrfeasLitos 86ea4bc
Remove ".ok" from "assert"
OrfeasLitos 5457bda
Replace "fromString" with "fromBase58", comment
OrfeasLitos 32085a9
Verify fake public key correctly
OrfeasLitos 52cf7d6
Remove old fake public key
OrfeasLitos db912b5
Add tag generator
OrfeasLitos d96f244
Use valid fake public key
OrfeasLitos 8235022
Remove TODO
OrfeasLitos caab3be
Use "should" syntax instead of "assert"
OrfeasLitos fb6b246
Add test that fakePubKey is a buffer
OrfeasLitos bb09e21
Simplify tag creation from key
OrfeasLitos d13061e
Add getAddress() type
OrfeasLitos 2c60c69
Remove last test in tag
OrfeasLitos 907170d
Add spv_node.js
OrfeasLitos 37fb6f4
Add SPVNode types and refs to relevant files
OrfeasLitos 6b0112b
Add pool.watchAddress() function type
OrfeasLitos 63cc3b8
Add tag
OrfeasLitos 1704b56
Add tag to Bloom filter
OrfeasLitos 6cd6779
Add SPV node test file
OrfeasLitos 8a89d63
Put tag in TrustIsRisk constructor
OrfeasLitos 5aeb1fc
Separate type declarations and assignments
OrfeasLitos d572b77
Use tag from TrustIsRisk class
OrfeasLitos 14f7cb7
Add console capability
OrfeasLitos a932ed3
Run npm install
OrfeasLitos df25421
Create short tag and public key
OrfeasLitos e393d85
Use short tag and public key
OrfeasLitos c93bcf3
Break down commands into smaller pieces
OrfeasLitos b814796
Rename tag vars for clarity
OrfeasLitos fb33b3a
Use tag instead of shortTag
OrfeasLitos 3fe3c7e
Use public key instead of tag
OrfeasLitos 3ebc94b
Reorder commands for ease of use
OrfeasLitos 9488f7f
Replace public keys with tags
OrfeasLitos 3c7517b
Group uncompressed together
OrfeasLitos 1ed0e59
Hide spv_node.js temporarily
OrfeasLitos c291ec9
Use uncompressedFakePubKey instead of tag
OrfeasLitos e7cb2fd
Replace tag with fakePubKey
OrfeasLitos 14efb8a
Remove "uncompressed" from fakePubKey*
OrfeasLitos 16ef72c
Bring back spv_node.js test from hiding
OrfeasLitos 7216d41
Replace "new Buffer" with "Buffer.from"
OrfeasLitos 4f59609
Remove spv_node.js files
OrfeasLitos 8639115
Remove commented out lines
OrfeasLitos f0eb7ca
Define bcoin, inherit full and spv
OrfeasLitos 013c706
Align with other comments
OrfeasLitos 3869c2b
Remove compressed version of tag
OrfeasLitos 6fa62ab
Put comments in their own lines
OrfeasLitos d271530
Replace tag with fakePubKey
OrfeasLitos fc20631
Move to etc
OrfeasLitos 14fdf56
Refer to etc/tag-generator.py
OrfeasLitos ed5f986
Stop using assert()
OrfeasLitos 9f01cf9
Add tag stuff out of class
OrfeasLitos 1e436e5
Use fakePubKey outside class
OrfeasLitos a079369
Export fakePubKey and tag
OrfeasLitos f41b005
Use ".Tir" to refer to TrustIsRisk
OrfeasLitos 5cfacdc
Use exported fakePubKey and tag
OrfeasLitos b2bc8b6
Remove tag definitions from TrustIsRisk class
OrfeasLitos 67b294c
Rename "Tir" to "TIR"
OrfeasLitos 43a5e69
Remove redundant "NodeWatcher" definition
OrfeasLitos 247c8b1
Fix comment appearance and typo
OrfeasLitos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extends bcoin$Node
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done