Skip to content

Commit

Permalink
Create blockchain.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Jul 21, 2024
1 parent 70f1803 commit f3cebea
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions core/sidra-chain/blockchain/blockchain.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// blockchain.js
import * as Blockchain from 'blockchain';

class SidraChainBlockchain {
constructor() {
this.chain = [];
}

addBlock(block) {
// Add a new block to the blockchain
}

validateBlockchain() {
// Validate the entire blockchain
}
}

export default SidraChainBlockchain;

0 comments on commit f3cebea

Please sign in to comment.