区块链
清风!识字
这个作者很懒,什么都没留下…
展开
-
python实现分布式区块链
python实现分布式区块链import hashlibimport jsonfrom time import timefrom urllib.parse import urlparsefrom uuid import uuid4import requestsfrom flask import Flask, jsonify, requestimport mathclass Blockchain(object): def __init__(self): self.c原创 2020-10-10 14:41:58 · 591 阅读 · 0 评论 -
python实现简单区块链
python实现简单区块链import hashlibimport jsonfrom time import timefrom typing import Any, Dict, List, Optionalfrom urllib.parse import urlparsefrom uuid import uuid4import requestsfrom flask import Flask, jsonify, requestimport mathclass Blockchain(obj原创 2020-10-10 09:41:20 · 499 阅读 · 0 评论 -
Node.js实现简单区块链
Node.js实现简单区块链1.blockchain.jsconst SHA256 = require('crypto-js/sha256');class Block { // 构造函数 constructor(index, timestamp) { this.index = index; this.timestamp = timestamp; this.transactions = []; this.previousHash = ''; this.h原创 2020-10-09 14:51:00 · 1356 阅读 · 0 评论