This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": [ | |
{ | |
"name": "Development", | |
"request": "launch", | |
"type": "dart", | |
"program": "lib/main_development.dart", | |
"args": [ | |
"--flavor", | |
"development", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This code has been updated multiple times. You can access the new version here: | |
# https://github.com/hiruthicShaSS/simple-blockchain | |
from hashlib import sha1 | |
from datetime import datetime | |
import time | |
class Block: | |
def __init__(self, data: dict): | |
self.previousBlockHash = "0" |