随笔分类 -  区块链

1

One way to failed Crack BTC POW funciton
摘要:Abstract : 概述 I try to Crack BTC POW funciton. 我尝试去破解BTC的POW函数 I think if a result has more zero it will more near target. 如果一个结果里面有更多的0,那么它应该更容易实现目标。 阅读全文

posted @ 2021-06-05 17:07 我尽量尽力而为 阅读(104) 评论(0) 推荐(0)

ntgbtminer代码分析
摘要:入口 if __name__ == "__main__": if len(sys.argv) < 3: print("Usage: {:s} <coinbase message> <block reward address>".format(sys.argv[0])) sys.exit(1) sta 阅读全文

posted @ 2021-02-08 15:42 我尽量尽力而为 阅读(479) 评论(0) 推荐(0)

修改Bitcoin-qt配置文件,启动Server
摘要:配置文件路径: /home/helen/.bitcoin/bitcoin.conf 配置文件内容: # always run a server, even with bitcoin-qt server=1 # enable SSL for RPC server #rpcssl=1 rpcallowi 阅读全文

posted @ 2021-02-08 15:26 我尽量尽力而为 阅读(303) 评论(1) 推荐(0)

ntgbtminer测试流程
摘要:搭建测试环境 https://www.cnblogs.com/weikunpeng/p/14381522.html 修改home/tester/bitcoin-testnet-box/1/bitcoin.conf 去掉远程访问的限制 rpcallowip=0.0.0.0/0 rpcallowip=: 阅读全文

posted @ 2021-02-07 21:52 我尽量尽力而为 阅读(118) 评论(0) 推荐(0)

利用Docker搭建比特币私有链
摘要:下载镜像 docker pull freewil/bitcoin-testnet-box 运行镜像 docker run -t -i -p 19001:19001 -p 19011:19011 freewil/bitcoin-testnet-box 修改make脚本 如果需要修改make相关的命令, 阅读全文

posted @ 2021-02-06 14:54 我尽量尽力而为 阅读(1174) 评论(0) 推荐(0)

二进制字符串转换为int类型, 十六进制
摘要:二进制字符串转换为int类型 int m=Integer.parseInt(a,2);//将字符串转化成十进制整形,2表示原串表示的数是二进制String n=Integer.toBinaryString(m);//将上面那个十进制数转化为二进制字符串形式 C++二进制字符串转十六进制字符串 十六进 阅读全文

posted @ 2021-02-01 11:04 我尽量尽力而为 阅读(1425) 评论(0) 推荐(0)

使BOOST_TEST_MESSAGE显示在屏幕上
摘要:Either set the environment variable BOOST_TEST_LOG_LEVEL to message when running your test binary: BOOST_TEST_LOG_LEVEL=message <your_test> 命令行添加如下参数: 阅读全文

posted @ 2021-01-29 20:08 我尽量尽力而为 阅读(249) 评论(0) 推荐(0)

CBlock类的GetHash函数分析
摘要:GetHash声明 src\primitives\block.h uint256 GetHash() const; GetHash定义 调用SerializeHash函数 *this指向CBlock对象 src\primitives\block.cpp uint256 CBlockHeader::G 阅读全文

posted @ 2021-01-29 19:40 我尽量尽力而为 阅读(165) 评论(0) 推荐(0)

validation_block_tests分析
摘要:文件路径 src\test\validation_block_tests.cpp 包含的头文件 // Copyright (c) 2018-2020 The Bitcoin Core developers // Distributed under the MIT software license, 阅读全文

posted @ 2021-01-28 17:57 我尽量尽力而为 阅读(129) 评论(0) 推荐(0)

Boost.Test 单元测试框架
摘要:Test库提供了强有力的单元测试框架(UTF),它为软件开发的基本领域一单元测试提供了简单而富有弹性的解决方案,可以满足开发人员从高到低的各种需求,它的优点包括 易于理解,任何人都可以很容易地构建单元测试模块 提供测试用例、测试套件的概念,并能够以任意的复杂度组织它们 提供丰富的测试断言,能够处理各 阅读全文

posted @ 2021-01-28 11:44 我尽量尽力而为 阅读(547) 评论(0) 推荐(0)

Bitcoin的单元测试
摘要:原文 https://github.com/bitcoin/bitcoin/blob/master/src/test/README.md 基本情况 使用语言为Python,通过如下文件执行 test/functional/test_runner.py 单元测试源代码的目录为: /src/test/ 阅读全文

posted @ 2021-01-28 11:24 我尽量尽力而为 阅读(271) 评论(0) 推荐(0)

Boost介绍
摘要:官网 https://www.boost.org/ 简介 Boost是为C++语言标准库提供扩展的一些C++程序库的总称。Boost库是一个可移植、提供源代码的C++库,作为标准库的后备,是C++标准化进程的开发引擎之一,是为C++语言标准库提供扩展的一些C++程序库的总称。Boost库由C++标准 阅读全文

posted @ 2021-01-28 10:43 我尽量尽力而为 阅读(1089) 评论(0) 推荐(0)

Kali中使用vscode调试bitcoin
摘要:.vscode/launch.json设置 关键在于 "program": "${workspaceFolder}/src/qt/bitcoin-qt", 全部内容: { // Use IntelliSense to learn about possible attributes. // Hover 阅读全文

posted @ 2021-01-26 23:15 我尽量尽力而为 阅读(222) 评论(0) 推荐(0)

比特币POW算法单文件版
摘要:#include <iostream> #include <vector> #include <string> #include <cstring> #include <limits> #include <stdexcept> #include <stdint.h> #include <casser 阅读全文

posted @ 2021-01-24 23:16 我尽量尽力而为 阅读(125) 评论(0) 推荐(0)

比特币POW算法分析
摘要:基本信息 官网:https://github.com/bitcoin/bitcoin 比特币节点pow大致流程 生成coinbase交易,并与其他所有准备打包进区块的交易组成交易列表,通过Merkle树算法生成Merkle根哈希; 把Merkle根哈希及其他相关字段组装成区块头,将区块头的80字节数 阅读全文

posted @ 2021-01-23 22:20 我尽量尽力而为 阅读(863) 评论(0) 推荐(0)

docker配置资料
摘要:http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/ https://www.runoob.com/docker/windows-docker-install.html https://developer.aliyun.co 阅读全文

posted @ 2020-12-06 17:08 我尽量尽力而为 阅读(50) 评论(0) 推荐(0)

fabric曾经收集的好资料
摘要:https://www.jianshu.com/p/64281ff8de13 https://fabric-chs.readthedocs.io/zh_CN/chs/ https://github.com/fengzxu/fcc https://github.com/fftt2017/myfabri 阅读全文

posted @ 2020-12-06 16:39 我尽量尽力而为 阅读(64) 评论(0) 推荐(0)

技术选型
摘要:简单 electron 效率+跨平台 QT C++ 阅读全文

posted @ 2020-12-06 16:34 我尽量尽力而为 阅读(60) 评论(0) 推荐(0)

曾经写的一个门罗挖矿客户端(界面化)
摘要:https://lwn.net/Articles/250967/ https://gitee.com/menluobi/menluokuanggong 阅读全文

posted @ 2020-12-06 16:31 我尽量尽力而为 阅读(130) 评论(0) 推荐(0)

FCC(不动产登记业务区块链搭建过程中遇到的坑)
摘要:FCC的代码在这里:https://gitee.com/xujf/fcc?_from=gitee_search 前期在windows平台下编译,因为docker-tools相关功能达不到要求而失败。(这里浪费了好多时间,引以为戒吧!) 官方教程也存在很多缩减的地方,后面看评论才找到详细的步骤,链接在 阅读全文

posted @ 2020-11-15 17:09 我尽量尽力而为 阅读(307) 评论(0) 推荐(0)

1

导航