export type Address = string ; export class Transaction { public senderAddress : Address ; public recipientAddress : Address ; public value : number ; } export class Block { public blockNumber : number ; public transactions : Array < Transaction > ; public timestamp : number ; public nonce : number ; public prevBlock : string ; } export class Blockchain { public nodeId : string ; public blocks : Array < Block > ; public transactionPool : Array < Transaction > ; constructor ( nodeId ) { this . nodeId = nodeId ; this . blocks = [ ] ; this . transactionPool = [ ] ; } public submitTransaction ( ) { } public createBlock ( ) { } }