mongodb europe 2016 - distributed ledgers, blockchain + mongodb
Post on 16-Apr-2017
994 Views
Preview:
TRANSCRIPT
MongoDB + BlockchainBryan Reinero
Counterparty RiskAccounting
Smart ContractsElections
t0
tn
+4 -2 +5 +7 -4 +9 -3 -6 +2 +1 +1 +5
t(12) = 9
State
Event Sourcing+
CQRS
t0
tn
+4 -2 +5 +7 -4 +9 -3 -6 +2 +1 +1 +5
t(12) = 9
t0
tn
+4 -2 +5 +7 -4 +9 -3 -6 +2 +1 +1 +5
t(12) = 5
+4 -2 +5 +7 -4
t0
tn
+9 -3 -6 +2 86 99 78
Security+
Consensus
Milton
Milton
SHA-256
Milton
Karl SHA-256
Milton
Karl
Milton
SHA-256
MiltonKarl
Milton
SHA-256
Alan
SHA-256
{ "_id" : "08f906a56b8d42...312171b966a8c502b", "ver" : 1, "inputs" : [ { "sequence" : NumberLong("4294967295"), "tx_index" : 154820346, "addr" : "12GV8BDpTFBsZrteSRkJ3gBWGxmPpLHHB7", "value" : NumberLong(4750048), "script" : "76a9140de5d77abb482...f734388ac" } ], "out" : [ { "addr" : "1H961QbXzizYjvafNwu5YigjQ2ZRD26sDd", "value" : NumberLong(4620000), "script" : "76a914b1098516d4fcc...4260c39410bd482c588ac" }, ], "blockHash" "000000000000000001a8...aa1257e625bfc4eb6a171615f46", "block_height" : 416369}
{ "_id" : "08f906a56b8d42...312171b966a8c502b", "ver" : 1, "inputs" : [ { "sequence" : NumberLong("4294967295"), "tx_index" : 154820346, "addr" : "12GV8BDpTFBsZrteSRkJ3gBWGxmPpLHHB7", "value" : NumberLong(4750048), "script" : "76a9140de5d77abb482...f734388ac" } ], "outputs" : [ { "addr" : "1H961QbXzizYjvafNwu5YigjQ2ZRD26sDd", "value" : NumberLong(4620000), "script" : "76a914b1098516d4fcc...4260c39410bd482c588ac" }, ], "blockHash": "000000000000000001a8...aa1257e625bfc4eb6a171615f46", "block_height" : 416369}
Milton
Ben
Blythe
KarlAlan
Milton
Ben
Blythe
KarlAlan
$graphLookup
Security+
Consensus
Karl
Milton
SHA-256
000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
0000000000000bae09a7a393a8acded75aa67e46cb81f7acaa5ad94f9eacd103a
0000000000000bae09a7a393a8acded75aa67e46cb81f7acaa5ad94f9eacd103a
0000000000000bae09a7a393a8acded75aa67e46cb81f7acaa5ad94f9eacd103a
hash(nonce )
0 1 2 3 4
t0
tn
4
5 6 7 8 9 10 11
5 6 7
0 1 2 3 4
t0
tn
4
5 6 7 8 9 10 11
5 6 7
3 4 5 6
t0
tn
risk
1 2 3 4 5 6 7 8 9 10 11 12
t1
t12
1 2 3 4 5 6 7 8 9 10 11 12
t1
t12
?
t2
t13
2 3 4 5 6 7 8 9 10 11 12 13
t3
t14
3 4 5 6 7 8 9 10 11 12 13 14
t4
t15
4 5 6 7 8 9 10 11 12 13 14 15
t5
t16
5 6 7 8 9 10 11 12 13 14 15 16
t6
t17
6 7 8 9 10 11 12 13 14 15 16 17
t6
t17
7 8 9 10 11 12 13 14 15 16 17 18
11 5 8 8 3 7 4 1 4 7 117 1 1 13 2 10 11 10 9 14 139 8 2 6 5 14 9 9 7 4 1310 6 10 6 11 1 5 9 5 4
1214 14 10
t0
tn
2 88
4 78
6846452539177
Thanks!@blimpyacht
https://github.com/breinero/blockchain_demo
top related