{"version":3,"sources":["https://lively-kernel.org/lively4/lively4-stable/src/blockchain/model/blockchain/genesisBlock.js"],"names":["TransactionCollection","Block","GenesisBlock","constructor","minerWallet","isFinalized","timestamp","Date","now","minerHash","hash","minerPublicKey","publicKey","transactions","finalize","miningProof","reward","previousHash","_sendReward"],"mappings":";;;;;;AAAOA,2B;;AACAC,W;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEQ,YAAMC,YAAN,SAA2BD,KAA3B,CAAiC;AAC9CE,oBAAYC,WAAZ,EAAyB;AACvB,gBAAMA,WAAN,EAAmB,IAAIJ,qBAAJ,EAAnB,EAAgD,EAACK,aAAa,MAAM,IAApB,EAAhD,EAA2E,EAA3E;AACA,eAAKC,SAAL,GAAiBC,KAAKC,GAAL,EAAjB;AACA,eAAKC,SAAL,GAAiBL,YAAYM,IAA7B;AACA,eAAKC,cAAL,GAAsBP,YAAYQ,SAAlC;AACA,eAAKC,YAAL,GAAoB,IAAIb,qBAAJ,GAA4Bc,QAA5B,EAApB;AACA,eAAKC,WAAL,GAAmB,IAAnB;AACA,eAAKC,MAAL,GAAc,CAAd;AACA,eAAKC,YAAL,GAAoB,EAApB;AACD;;AAEDC,sBAAc;AACZ,eAAKL,YAAL,CAAkBC,QAAlB;AACA;AACD;;AAf6C;;yBAA3BZ,Y","file":"genesisBlock.js","sourcesContent":["import TransactionCollection from '../transaction/transactionCollection.js';\nimport Block from '../block/block.js';\n\nexport default class GenesisBlock extends Block {\n  constructor(minerWallet) {\n    super(minerWallet, new TransactionCollection(), {isFinalized: () => true}, \"\");\n    this.timestamp = Date.now();\n    this.minerHash = minerWallet.hash;\n    this.minerPublicKey = minerWallet.publicKey;\n    this.transactions = new TransactionCollection().finalize();\n    this.miningProof = null;\n    this.reward = 0;\n    this.previousHash = \"\";\n  }\n  \n  _sendReward() {\n    this.transactions.finalize();\n    return;\n  }\n  \n}"]}