摘要: https://npm.taobao.org/package/secp256k1 这个即椭圆曲线加密算法算法,随机生成一个私钥然后通过椭圆曲线加密算法算法(ECC)得到一个公钥,且无法反向 然后再使用椭圆曲线签名算法(ECDSA)和私钥结合进行签名 Secp256k1是指比特币中使用的ECDSA(椭 阅读全文
posted @ 2018-09-29 17:35 慢行厚积 阅读(12718) 评论(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 慢行厚积 阅读(1811) 评论(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 慢行厚积 阅读(1158) 评论(0) 推荐(0)
摘要: 函数的结果 call()的返回结果是一个bool,表示是否成功的调用,或者是失败引起了EVM异常。该方法无法直接访问函数返回结果(因为需要事前知道编码和返回结果大小)。 call()的返回结果即使成功,并不能说操作成功了,只是没有出现异常,比如我们第一个例子中,实际是调用到了fallback()函数 阅读全文
posted @ 2018-09-29 17:25 慢行厚积 阅读(5696) 评论(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 慢行厚积 阅读(1535) 评论(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 慢行厚积 阅读(4187) 评论(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 慢行厚积 阅读(1442) 评论(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 慢行厚积 阅读(503) 评论(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 慢行厚积 阅读(711) 评论(0) 推荐(0)
摘要: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-100.md 创世纪区块的难度是131,072,有一个特殊的公式用来计算之后的每个块的难度。如果某个区块比前一个区块验证的更快,以太坊协议就会增加区块的难度。 区块的难度影响nonce,它是在 阅读全文
posted @ 2018-09-29 17:15 慢行厚积 阅读(2162) 评论(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 慢行厚积 阅读(716) 评论(0) 推荐(0)
摘要: 在以太坊中,可以找到关于上述破损的解释例子。以太坊有两种消息,交易𝕋和字节串𝔹⁸ⁿ。这些分别用eth_sendTransaction和eth_sign来签名。最初的编码函数encode : 𝕋∪𝔹⁸ⁿ→𝔹⁸ⁿ如下定义: encode(t : T) = RLP_encode(t) encod 阅读全文
posted @ 2018-09-29 17:12 慢行厚积 阅读(2385) 评论(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 慢行厚积 阅读(961) 评论(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 慢行厚积 阅读(417) 评论(0) 推荐(0)
摘要: EIP 155:重放攻击保护——防止了在一个以太坊链上的交易被重复广播到另外一条链。 在看椭圆曲线时有提到,与r、s、v中的v相关 不同的共有链定义不同的chainId, 防止同一笔交易在不同的共有链上进行两次交易,防止重放攻击(其实就是防止测试网中的代币发送到主网中去) v = 35 + chai 阅读全文
posted @ 2018-09-29 17:07 慢行厚积 阅读(2272) 评论(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 慢行厚积 阅读(453) 评论(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 慢行厚积 阅读(415) 评论(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 慢行厚积 阅读(313) 评论(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 慢行厚积 阅读(1174) 评论(0) 推荐(0)
摘要: 160 EXP cost increase Vitalik Buterin Standards Track Core Final 2016-10-20 EXP费用增加——调整了‘EXP’ opcode的价格,这个改变平衡了‘EXP’的价格和它的计算复杂性,总的来说提升了使用这种复杂性计算合约来拖慢整 阅读全文
posted @ 2018-09-29 17:03 慢行厚积 阅读(141) 评论(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 慢行厚积 阅读(602) 评论(0) 推荐(0)
摘要: 参考: 1)https://www.colabug.com/3204345.html 2)https://www.toptal.com/ethereum/one-click-login-flows-a-metamask-tutorial#utilize-unreal-developers-today 阅读全文
posted @ 2018-09-29 17:02 慢行厚积 阅读(11232) 评论(0) 推荐(1)
摘要: 启发: https://github.com/MetaMask/metamask-extension/issues/714 https://github.com/MetaMask/metamask-extension/issues/3383 () 下面是cryptokitties这个游戏使用meta 阅读全文
posted @ 2018-09-29 16:59 慢行厚积 阅读(8832) 评论(0) 推荐(1)
摘要: ()metamask-extension/app/scripts/controllers/transactions Transaction Controller is an aggregate of sub-controllers and trackers exposed to the MetaMa 阅读全文
posted @ 2018-09-29 16:48 慢行厚积 阅读(1574) 评论(0) 推荐(0)
摘要: When a new site is visited, the WebExtension creates a new ContentScript in that page's context, which can be seen at app/scripts/contentscript.js. Th 阅读全文
posted @ 2018-09-29 16:47 慢行厚积 阅读(1438) 评论(0) 推荐(0)
摘要: 这个就是浏览器后台所进行操作的地方了,它就是页面也区块链进行交互的中间部分。 metamask-background描述了为web扩展单例的文件app/scripts/background.js。该上下文实例化了一个MetaMask控制器的实例,该实例表示用户的帐户、到区块链的连接以及与新Dapps 阅读全文
posted @ 2018-09-29 16:47 慢行厚积 阅读(1752) 评论(0) 推荐(0)
摘要: ()MetaMask Browser Extension https://github.com/MetaMask/metamask-extension 这就是整个metamask的源码所在之处,好好看看 https://metamask.github.io/metamask-extension/这是 阅读全文
posted @ 2018-09-29 16:46 慢行厚积 阅读(2394) 评论(0) 推荐(0)
摘要: The MetaMask Controller——The central metamask controller. Aggregates other controllers and exports an api. The core functionality of MetaMask all live 阅读全文
posted @ 2018-09-29 16:46 慢行厚积 阅读(1349) 评论(0) 推荐(0)
摘要: The most confusing part about porting MetaMask to a new platform is the way we provide the Web3 API over a series of streams between contexts. Once yo 阅读全文
posted @ 2018-09-29 16:46 慢行厚积 阅读(2097) 评论(0) 推荐(0)
摘要: The UI-即上图左下角metamask-ui部分,即其图形化界面 The MetaMask UI is essentially just a website that can be configured by passing it the API and state subscriptions 阅读全文
posted @ 2018-09-29 16:45 慢行厚积 阅读(679) 评论(0) 推荐(0)
摘要: https://github.com/MetaMask/metamask-extension/blob/develop/docs/porting_to_new_environment.md MetaMask has been under continuous development for near 阅读全文
posted @ 2018-09-29 16:45 慢行厚积 阅读(717) 评论(0) 推荐(0)
摘要: pump简介 https://github.com/terinjokes/gulp-uglify/blob/master/docs/why-use-pump/README.md#why-use-pump 当使用来自Node.js的管道时,错误不会通过管道流向前传播,如果目标流关闭,源流也不会关闭。p 阅读全文
posted @ 2018-09-29 16:44 慢行厚积 阅读(1567) 评论(0) 推荐(0)
摘要: https://github.com/MetaMask/metamask-extension/tree/master/app/scripts/controllers/network metamask-extension/app/scripts/controllers/network/network. 阅读全文
posted @ 2018-09-29 16:44 慢行厚积 阅读(1056) 评论(0) 推荐(0)
摘要: 1193 Ethereum Provider JavaScript API Ryan Ghods (@ryanio), Marc Garreau (@marcgarreau) https://ethereum-magicians.org/t/eip-1193-ethereum-provider-ja 阅读全文
posted @ 2018-09-29 16:43 慢行厚积 阅读(1854) 评论(0) 推荐(0)