非对称加密(质因数分解)rsa椭圆曲线加密(质因数分解+曲线方程)
string hash哈希
非对称加密(质因数分解)rsa椭圆曲线加密(质因数分解+曲线方程)
string hash
哈希:例如:MD5基于hash 1 不可逆 2 摘要 校验 3 不需要逆运算的加密 4 散列: sha256-》计算公钥私钥的散列算法
区块链概念: 区块:存储结构 链:hash关联算法 挖矿:猜测随机数 直到计算的hash满足某个条件(困难度hash前10个字符是0)

以太坊区块链开发: truffle开发框架 安装nodejs http://nodejs.cn/download/ 安装truffle框架 npm
install -g truffle 初始化项目 truffle init #这个命令已经添加了web3支持 能帮我们和矿机通信
将进入开发模式 truffle develop 启动之后会打印10个公钥(地址)和私钥(交易的密码) 查看账户金额
web3.eth.getBalance(web3.eth.accounts[0])
Number(web3.eth.getBalance(web3.eth.accounts[0])) 最小单位是wei
使用metamask 对接私有网络 点击 metamask左上角的网络进行切换 点击 自定义(最后一个) 输入本地的ip:9545
复制netmask钱包的地址 进行转账 0x790cD84C0DC30Fa50f14D49b92d735cC2D16469E
web3.eth.sendTransaction({from:web3.eth.accounts[0],to:"0x790cD84C0DC30Fa50f14D49b92d735cC2D16469E",value:web3.toWei(50,"ether")})
转账到测试账户

------如何使用webpack------- 项目构建:truffle unbox webpack npm install 安装之前缺少的包
package.json依赖 npm run dev
-----如何用webpack整合angularjs------- npm install --save-dev angular angularjs
angular-ui-router

-----端口设置---- 在package.json中修改为"dev": "webpack-dev-server --port=8000"
---支持多页面----- 修改packagejson入口出口 entry: { index:'./app/javascripts/index.js',
hello:'./app/javascripts/hello.js' }, output: { path: path.resolve(__dirname,
'build'), filename: "[name].js" },


---如果用java作为客户端------ web3js的java版本
https://blog.csdn.net/m0_37327416/article/details/72885625
源码:https://github.com/web3j/web3j 文档:https://web3j.github.io/web3j/
---如何修改为纯网页版---





框架官网http://truffleframework.com <http://truffleframework.com>
https://truffle-box.github.io/ <https://truffle-box.github.io/>教程
http://truffle.tryblockchain.org/在git bash 界面操作安装插件npm install -g trufflemkdir
democd demo初始化项目truffle init然后打开 atom 选择demo文件夹将进入开发模式truffle develop
查看账户金额web3.eth.getBalance(web3.eth.accounts[0])
Number(web3.eth.getBalance(web3.eth.accounts[0]))使用metamask 对接私有网络 点击
metamask左上角的网络进行切换 点击 自定义(最后一个)输入本地的ip:9545

web3.eth.sendTransaction({from:web3.eth.accounts[0],to:"0x5FB1CdD9ebC7226281311D21FB392B7c89284bF5",value:web3.toWei(50,"ether")})
转账到测试账户truffle developcompile编译migrate部署调用 先初始化合约对象var h;
Hello.deployed().then(instance => h=instance);等价于下面的代码
Hello.deployed().then(function(instance){ h=instance } );



解锁转账personal.unlockAccount(eth.accounts[0],"111111")
eth.sendTransaction({from:eth.accounts[0],to:"0x5FB1CdD9ebC7226281311D21FB392B7c89284bF5",value:web3.toWei(10,"ether")})

使用界面化的框架 使用boxtruffle unbox react
后续与界面交互需要使用web3.js操作http://web3.tryblockchain.org
<http://web3.tryblockchain.org>使用react操作 类似angularjs
http://www.runoob.com/react/react-tutorial.html
<http://www.runoob.com/react/react-tutorial.html>


操作ifps:https://segmentfault.com/a/1190000012138804
<https://segmentfault.com/a/1190000012138804>react关于this绑定
https://blog.csdn.net/sinat_17775997/article/details/56839485
<https://blog.csdn.net/sinat_17775997/article/details/56839485>
npm使用方式 https://www.npmjs.com.cn
docker运行以太坊 https://blog.csdn.net/ddffr/article/details/75250661linux区块链基本操作
https://www.cnblogs.com/beyang/p/8469227.html
<https://www.cnblogs.com/beyang/p/8469227.html>
区块链概念分析https://blog.csdn.net/teaspring/article/details/75389151ipfs安装入门:
https://www.cnblogs.com/helloworld2018/p/8971449.html
<https://www.cnblogs.com/helloworld2018/p/8971449.html>
先解压 配置环境变量ipfs initipfs add 文件名根据返回的hash 进行查询 ipfs cat hash值ipfs config
Addresses.APIipfs config Addresses.API /ip4/127.0.0.1/tcp/5001


ipfs daemon 启动服务通过访问http://127.0.0.1:8080/ipfs/hash值 来进行访问
如果不能访问放开跨域修改配置文件 config 添加"Access-Control-Allow-Methods":["PUT", "GET",
"POST", "OPTIONS"],"Access-Control-Allow-Origin":["*"],
在atom项目目录执行npm install ipfs-api 添加客户端模块const ipfsAPI = require('ipfs-api')
const ipfs = ipfsAPI('127.0.0.1', '5001', {protocol: 'http'})
使用ipfs-api https://www.npmjs.com/package/ipfs-api



页面间如何跳转 项目构建?------如何使用webpack-------项目构建:truffle unbox webpack


-----如何用webpack整合angularjs-------npm install --save-dev angular angularjs
angular-ui-router
1 了解hash rsa非对称加密 pow pos dpos pbft paxos raft算法2 实现商品列表 要求信息存储在区块中3 python 和
go语音 要求熟悉4 了解 mongodb leveldb等5 熟悉fabric


-----端口设置----在package.json中修改为"dev": "webpack-dev-server --port=8000"
---支持多页面-----修改packagejson入口出口 entry: { index:'./app/javascripts/index.js',
hello:'./app/javascripts/hello.js' }, output: { path: path.resolve(__dirname,
'build'), filename: "[name].js" },

ipsf文件操作:https://blog.csdn.net/koastal/article/details/78771932


---如果用java作为客户端------web3js的java版本
https://blog.csdn.net/m0_37327416/article/details/72885625
源码:https://github.com/web3j/web3j文档:https://web3j.github.io/web3j/
---如何修改为纯网页版---





------合约开发---------智能合约开发
http://liyuechun.org/2017/10/13/smart-contract-voting-dapp/
如何安装合约调试环境:https://blog.csdn.net/weixin_41806245/article/details/80150012
在线合约调试地址:https://ethereum.github.io/browser-solidity/
https://remix.ethereum.org copy合约代码在线js测试
开发一个投票系统 http://liyuechun.org/2017/10/13/smart-contract-voting-dapp/单页应用开发方案
https://www.cnblogs.com/luozhihao/p/5579786.html
快速代币:https://blog.csdn.net/hiblock/article/details/80071478
快速宠物店:https://zhuanlan.zhihu.com/p/36557622






友情链接
ioDraw流程图
API参考文档
OK工具箱
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:ixiaoyang8@qq.com
QQ群:637538335
关注微信