/block-chain-by-MATLAB

Block Chain MATLAB Implementation.

Primary LanguageMATLAB

Block-Chain-MATLAB

       index: 0
        data: 'Genesis Block'
previousHash: []
    selfHash: '075c27741a3506846368fa6e5b3477f85b31ceee71a5716e2f12b40fa21d23aa'
       nonce: []

       index: 1
        data: 'ABMOP200'
previousHash: '075c27741a3506846368fa6e5b3477f85b31ceee71a5716e2f12b40fa21d23aa'
    selfHash: '000cfbb745e3d504306b8c435b639d1d'
       nonce: 1209

       index: 2
        data: 'BCUSD300'
previousHash: '000cfbb745e3d504306b8c435b639d1d'
    selfHash: '0008fc36bf8a3fac06b898239c5f6ff5'
       nonce: 292

Run 'TradingTest.m' to get result.

Block_Chain_MATLAB_Implementation.pdf includes some implementation details.

The_Gambler’s_Ruin_Problem_and_Block_Chain.pdf shows how to obtain the equation (4) in [1]

Reference:

[1] Nakamoto, Satoshi. (2009). Bitcoin: A Peer-to-Peer Electronic Cash System.

[2] www.zhihu.com