![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
智能合约
fRe_Bourne_Neo
老菜鸟
展开
-
合约代码分析
打算研究下合约,会持续记录分析一些合约的代码,刚开始学习,错误疏漏之处之处希望大家不吝多多留言赐教。原创 2022-11-06 22:03:36 · 366 阅读 · 0 评论 -
合约编码方式解析
例1: 函数定义: function baz(uint32 x, bool y) public pure returns (bool r) { r = x > 32 || y; } 实际调用: baz(69, true) 编码为: 方法ID——0xcdcd77c0,方法 baz(uint32 x, bool y)的签名的ASCII格式的Kecak hash 的前4个字节: 0xcdcd77c0 第一个参数——69的hex形式uint32值,用0补位成32字节 0x0000000000000原创 2022-10-26 15:33:07 · 111 阅读 · 0 评论 -
使用Geth搭建单节点测试环境 Build Ethereum single node local private networking with Geth
geth(go-ethereum)is an Ethereum client implemented in Go, can be used as a local client to connect to ethereum chain, a light client of ethereum or build a local ethereum test environment etc. “An Ethereum network is private if the nodes are not connec原创 2022-10-26 15:27:47 · 186 阅读 · 0 评论