MLSNews

《未闻》区块链技术日报,聚焦业内技术更新,做您最好的眼睛。

View project on GitHub

​MLSNEWS

——————◆ 20190625 ◆——————

  • Create2 的奇妙世界

    在 ETHCapeTown 黑客马拉松期间,我们使用功能强大的,新的以太坊操作码——CREATE2,制作了一个合约钱包的快速概念证明。

    较之 CREATE 操作码,CTEATE2 操作码可以在使用以太坊合约来生成新合约时更好地控制新合约的地址,当你想要反事实地(counter-factually)部署并使用一个自定义权限的合约时,这是非常有用的。

    Wisp 合约的目标是演示一种生成稳定合约钱包地址的技术,该地址可与其他用户共享,也可以实现代币和以太币转账功能,同时还可以在不保留任何链上合约钱包代码的情况下控制链上资产(例如 ENS 域名)。

    Wisp 地址的优点包括:首先,所有发给这种 Wisp 地址的交易都只需要确定的 21, 000 gas,但是更重要的是,这意味着可以访问代币、资金以及其他链上资产的合约钱包不能被攻击,因为它的代码实际上不在链上。

    如果合约钱包中出现错误,可于再次使用前在客户端进行更新,此期间所有加密资产都是安全的。

    剧透以及太长不看版: 使用静态引导程序 initcode 可以 获取 CREATE2 runtime 合约字节码从而生成可复用的合约地址。

    During the ETHCapeTown Hackathon we put together a quick proof-of-concept Contract Wallet, which uses the powerful new Ethereum opcode, CREATE2.

    The CREATE2 opcode allows an Ethereum contract to create a new Contract with a little more control over its address than the standard CREATE opcode, which is very useful when you want to counter-factually compute an address with custom permissions for the use of that address.

    The goal with a Wisp Contract, is to demonstrate a technique to generate a stable Contract Wallet address, which can be shared with other users for sending tokens and ether to or used to control on-chain assets (such as ENS names), but does not retain any Contract Wallet code on-chain.

    This provides a few advantages; firstly any transaction to this Wisp address requires exactly 21,000 gas, but more importantly, it means the Contract Wallet that has access to the tokens, funds and other on-chain assets cannot be hacked, since its code isn’t actually anywhere on-chain.

    If there turns out to be a bug in the Contract Wallet, it can be updated on the client side before being used again, during which time all the crypto-assets remain safe.

    spoiler + tl;dr: use a static bootstrap initcode to fetch the runtime bytecode for CREATE2 to generate repeatable contract addresses

  • 每周以太坊

    Layer-1

    • What’s New in Eth2。因为这是停更一段时间之后的首期,可以当成是对 Eth2 进度的完备总结。

    • Nimbus Eth2 客户端开发者更新——已追上技术规范最新版本。Nimbus 和 SigmaPrime 的 Lighthouse 客户端正在测试相互通信。

    • Eth2 客户端互操作性计划

    • 通过交错地生产分片区块,实现近乎即时的交易确认

    • CBC Casper:高效的 LMD(最新消息驱动型) GHOST

    Layer-2

    • Phonon Network:使用 Grid+ 的 SafeCard 实现的可扩展、私密支付系统

    • Alec 和 Karl 也在 Into the Ether 上讨论了 Phonon 网络

    • Connext 计划 7 月在 Counterfactual 上发布单节点 v2.0,然后在第三季度发布多节点版本

    • Near Protocol:状态通道、Plasma 以及 Rollup 等 Layer-2 方案的概览

    • 最新的 Plasma 实现者视频会议

    生态

    • 以太坊基金会公开它所支持的开发者团队

    • Eth.wiki

    • Argent 公开 Hopper,“一个基于零知识证明的免信任型混币器”,存入 1 ETH 可以取出到不同地址

    • 更好的用户体验:Gas 频谱交易(使用一个 Gas 价格的频谱签署多笔交易)

    • Augur v2 整合了 bZx 开启保证金交易

    • 首家第三方赌场 RaketheRake 已上线 FunFair

    治理

    • 最新的核心开发者视频会议。Tim Beiko 的实时推特流笔记列举了被讨论的 EIP。目前已接受作为 Istanbul 升级内容的有:EIP2024 预编译 blake2b 哈希函数;EIP1702 generalized account versioning(直译为 “普遍化账户版本控制”)。

    • EIP2124:Zero RTT 链兼容性检查

    • EIP2123:基于状态的硬分叉信号显示

    • ERC2126:辨识签名类型

    • EIP 1155 多代币标准通过

    • 最后一次征求意见:EIP685 用于 JSON-RPC 的 chainID 以及 EIP1344 chainID 操作码

  • 在R3试用后,SWIFT为区块链平台提供“即时”GPI付款

    全球银行间信息传输巨头SWIFT透露,它将允许区块链公司利用其全球支付创新(GPI)平台进行近实时支付。

    在上周晚些时候发布的一份报告中,SWIFT表示,在与R3的Corda平台成功进行概念验证后,它将“很快在基于DLT [分布式账本技术]的交易平台上实现gpi支付。”

    说该GPI将解决DLT平台面临的“支付挑战”,该公司解释说,使用该系统的支付将在交易工作流程中启动,并自动发送到银行系统。

    Global interbank messaging giant SWIFT has revealed it will allow blockchain firms to make use of its Global Payments Innovation (GPI) platform for near real-time payments.

    In a report published late last week, SWIFT said that, following a successful proof-of-concept with R3’s Corda platform, it would “soon be enabling gpi payments on DLT [distributed ledger technology]-based trade platforms.”

    Saying that GPI would resolve the “payment challenges” faced by DLT platforms, the firm explained that payments using the system would be initiated within trade workflows and be automatically sent on to the banking system.