摘要: https://npm.taobao.org/package/secp256k1 这个即椭圆曲线加密算法算法,随机生成一个私钥然后通过椭圆曲线加密算法算法(ECC)得到一个公钥,且无法反向 然后再使用椭圆曲线签名算法(ECDSA)和私钥结合进行签名 Secp256k1是指比特币中使用的ECDSA(椭 阅读全文
posted @ 2018-09-29 17:35 慢行厚积 阅读(12387) 评论(0) 推荐(0) 编辑
摘要: 在之前的个个与签名相关的地方我都对v的定义感到十分困惑,知道查看了黄皮书以后才对它的作用有了一定地了解,如下: (v is the recovery id: a 1 byte value specifying the sign and finiteness of the curve point; t 阅读全文
posted @ 2018-09-29 17:33 慢行厚积 阅读(1768) 评论(0) 推荐(0) 编辑
摘要: https://blog.zeppelin.solutions/the-hitchhikers-guide-to-smart-contracts-in-ethereum-848f08001f05 这个是简单的介绍 Hitchhiker’s Guide to Smart Contracts in Et 阅读全文
posted @ 2018-09-29 17:25 慢行厚积 阅读(1078) 评论(0) 推荐(0) 编辑
摘要: 函数的结果 call()的返回结果是一个bool,表示是否成功的调用,或者是失败引起了EVM异常。该方法无法直接访问函数返回结果(因为需要事前知道编码和返回结果大小)。 call()的返回结果即使成功,并不能说操作成功了,只是没有出现异常,比如我们第一个例子中,实际是调用到了fallback()函数 阅读全文
posted @ 2018-09-29 17:25 慢行厚积 阅读(5545) 评论(1) 推荐(1) 编辑
摘要: 出处:https://cloud.tencent.com/developer/article/1192548 深度解析Solidity的17个坑及超详细避坑指南 写的很好,好好学习 1. Re-Entrancy重新入口,可重入性 本博客the security of smart contract- 阅读全文
posted @ 2018-09-29 17:23 慢行厚积 阅读(1468) 评论(0) 推荐(0) 编辑
摘要: https://solidity.readthedocs.io/en/latest/units-and-global-variables.html#mathematical-and-cryptographic-functions It might be that you run into Out-o 阅读全文
posted @ 2018-09-29 17:18 慢行厚积 阅读(4124) 评论(0) 推荐(0) 编辑
摘要: https://github.com/PhABC/EIPs/blob/is-valid-signature/EIPS/eip-1271.md Standard Signature Validation Method for Contracts 1271 Standard Signature Vali 阅读全文
posted @ 2018-09-29 17:17 慢行厚积 阅读(1378) 评论(0) 推荐(0) 编辑
摘要: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1.md 介绍了什么是EIP等等的详细信息: 1 EIP Purpose and Guidelines Active Meta Martin Becze <mb@ethereum.org>, 阅读全文
posted @ 2018-09-29 17:16 慢行厚积 阅读(472) 评论(0) 推荐(0) 编辑
摘要: https://github.com/alexvandesande/EIPs/blob/ee2347027e94b93708939f2e448447d030ca2d76/EIPS/eip-1077.md 1077 Executable Signed Messages refunded by the 阅读全文
posted @ 2018-09-29 17:15 慢行厚积 阅读(681) 评论(0) 推荐(0) 编辑
摘要: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-100.md 创世纪区块的难度是131,072,有一个特殊的公式用来计算之后的每个块的难度。如果某个区块比前一个区块验证的更快,以太坊协议就会增加区块的难度。 区块的难度影响nonce,它是在 阅读全文
posted @ 2018-09-29 17:15 慢行厚积 阅读(2069) 评论(0) 推荐(0) 编辑
摘要: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1078.md 1078 Universal login / signup using ENS subdomains Alex Van de Sande <avsa@ethereum.org> 阅读全文
posted @ 2018-09-29 17:14 慢行厚积 阅读(600) 评论(0) 推荐(0) 编辑
摘要: 在以太坊中,可以找到关于上述破损的解释例子。以太坊有两种消息,交易𝕋和字节串𝔹⁸ⁿ。这些分别用eth_sendTransaction和eth_sign来签名。最初的编码函数encode : 𝕋∪𝔹⁸ⁿ→𝔹⁸ⁿ如下定义: encode(t : T) = RLP_encode(t) encod 阅读全文
posted @ 2018-09-29 17:12 慢行厚积 阅读(2257) 评论(0) 推荐(0) 编辑
摘要: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md 712 Ethereum typed structured data hashing and signing Remco Bloemen <remco@wicked.ventur 阅读全文
posted @ 2018-09-29 17:11 慢行厚积 阅读(829) 评论(0) 推荐(0) 编辑
摘要: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-191.md 191 Signed Data Standard Martin Holst Swende (@holiman), Nick Johnson <arachnid@notdot.ne 阅读全文
posted @ 2018-09-29 17:08 慢行厚积 阅读(365) 评论(0) 推荐(0) 编辑
摘要: EIP 155:重放攻击保护——防止了在一个以太坊链上的交易被重复广播到另外一条链。 在看椭圆曲线时有提到,与r、s、v中的v相关 不同的共有链定义不同的chainId, 防止同一笔交易在不同的共有链上进行两次交易,防止重放攻击(其实就是防止测试网中的代币发送到主网中去) v = 35 + chai 阅读全文
posted @ 2018-09-29 17:07 慢行厚积 阅读(2163) 评论(0) 推荐(1) 编辑
摘要: 607 Hardfork Meta: Spurious Dragon Alex Beregszaszi Meta Final 2017-04-23 155, 160, 161, 170 Abstract This specifies the changes included in the hard 阅读全文
posted @ 2018-09-29 17:07 慢行厚积 阅读(431) 评论(0) 推荐(0) 编辑
摘要: EIP 161: State trie clearing - makes it possible to remove a large number of empty accounts that were put in the state at very low cost as a result of 阅读全文
posted @ 2018-09-29 17:04 慢行厚积 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 158 State clearing Vitalik Buterin Standards Track Core Replaced 2016-10-16 161 被EIP-161取代了 Specification For all blocks where block.number >= FORK_BL 阅读全文
posted @ 2018-09-29 17:04 慢行厚积 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 1102 Opt-in provider access Paul Bouchon <mail@bitpshr.net> https://ethereum-magicians.org/t/eip-1102-opt-in-provider-access/414 Draft Standards Track 阅读全文
posted @ 2018-09-29 17:03 慢行厚积 阅读(1150) 评论(0) 推荐(0) 编辑
摘要: 55 Mixed-case checksum address encoding Vitalik Buterin Standards Track ERC Final 2016-01-14 Specification(python) 注意:v = utils.big_endian_to_int(util 阅读全文
posted @ 2018-09-29 17:03 慢行厚积 阅读(562) 评论(0) 推荐(0) 编辑