-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d32306
commit 41ad603
Showing
6 changed files
with
28 additions
and
10 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
# Sources consulted | ||
Bitcoin Stack Exchange (Bitcoin related resources) | ||
Odin Project (Web related resources) | ||
Odin Project (Web related resources) | ||
LeftAsExercise | ||
bitcoin repo | ||
|
||
# Thinking Process | ||
First, we need to parse the json files to get the required info. | ||
Second, we need to validate the transactions using that info, but then how do we order the transactions? | ||
//serialise | ||
//dp problem (recursively build utxo) | ||
|
||
|
||
|
||
Third,build the block | ||
Fourth, we need to find the nonce which passes difficulty and hence the hash | ||
We need to output the coinbase txn also |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include <iostream>//damn! the steam is really I/O stream! | ||
using namespace std; | ||
|
||
//create a serialise function to serialise txns | ||
|
||
int main() { | ||
//use freopen etc. to read json files | ||
freopen("output.txt","w",stdout); | ||
cout<<"Hello World\n"; | ||
return 0; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Hello World |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Update this file to run your own code | ||
node index.js | ||
./mine |