找到约 11 条结果

文章 智能合约

KOSTAS CHATZIKOKOLAKIS ## 智能合约 \| 小 Bug 的故事 正如大多数程序员会承认的那样,最令人恼火的 bug 往往是“小” bug。微小的逻辑错误是由一行代码中的几个错误字符引起的,编译正常且未被检测到,耐心地等待在最糟糕的时刻...

文章 Solidity库 | 双向链表

... ## 实现 ```solidity // SPDX-License-Identifier: LGPL-3.0-only pragma solidity 0.8.11; /** * @title Maintains a doubly linked list keyed by bytes32. * @dev Following the `next` pointers will lead you to the head, rather than the tail. */ library LinkedList { // 链表节点 ...

问题 关于合约调用合约的问题

这是A合约: ``` pragma solidity ^0.4.19; contract Amoney{ mapping (address => uint256) balances; function deposit() payable public{ balances[msg.sender] += msg.value; } function withdraw(address add,uint amount) public{ require(balances[add] >= a...

文章 Web3系列教程之入门篇---11. DAO

![](https://hicoldcat.oss-cn-hangzhou.aliyuncs.com/img/20220716080334.png) ## 什么是 DAO? DAO代表去中心化的自治组织。您可以将 DAO 视为类似于现实世界中的公司。从本质上讲,DAO 允许成员创建治理决策并对其进行投票。 在传统公司中,...

文章 区块链中的数学-SM2算法中的密钥交换协议

## 写在前面 上一节说了[sm2签名与验证](https://learnblockchain.cn/article/1507),如果之前secp256k1的签名过程比较熟的话,sm2签名过程也就容易理解了。本文继续说下基于sm2的密钥交换协议。 在开始之前,建议先看一经典的基于指数...

文章 BeansProtocol

# Ref: Beanstalk Hack https://etherscan.io/tx/0x68cdec0ac76454c3b0f7af0b8a3895db00adf6daaf3b50a99716858c4fa54c6f https://versatile.blocksecteam.com/tx/eth/0x68cdec0ac76454c3b0f7af0b8a3895db00adf6daaf3b50a99716858c4fa54c6f https://twitter.com/BlockSecTeam/status/1515732238612430849 # Attack:...

文章 零知识证明 - Coda SNARK挑战(Stage2)

SNARK挑战的第二阶段(Stage2)挑战的主要内容是:Groth16算法的证明生成和验证性能的优化。第二阶段的挑战又分成两部分内容:Groth16算法的证明生成(65000美金)以及Groth16算法的验证(10000美金)。 SNARK挑战使用的零知识证明...

招聘 Senior Backend Developer

**Job Responsibilities** - Develop and optimize smart contracts on Solana/Arweave; - Participate in Dapp architecture design and construction, ensuring system performance, scalability, and security; - Implement high-performance backend services, design systems as per requirements, and deliver o...

文章 Move Prover 实用指南

![move-prover-title.png](https://img.learnblockchain.cn/attachments/2022/09/uAAzxlYq6327bbce59cb2.png!/scale/30) *形式化验证* - 一种验证程序正确性的强力工具。但它是如何工作的呢?这篇博客会介绍一些Move Prover的使用技巧,充分利用其潜力,并...

文章 拥塞控制和EIP1559

...。在当前系统中,用户将出价附加到他们的交易中(即 _gas price_),希望超越其他用户,并足够吸引下一个矿工以包括他们。然而,这种首价拍卖的出价风格导致了超额支付、用户体验问题,并在一般情况下提供了很少的纳入保...

文章 myvetools: 帮助开发者高效开发TS代码,快速实现智能合约测试

...和区块链节点交互的接口。 * *Connex:https://github.com/vechain/connex* ### 工具安装 --- npm install myvetools 选择 Solidity 编译器版本 --- 通过以下命令可以下载指定版本的 solidity 编译器,比如 0.7.0 版本: ``` ./node_modules/.b...