找到约 13 条结果

文章 Let's move - Sui Coin合约发布实例

... id: UID } ​ /// This type is the witness resource and is intended to be used only once. struct PEACE has drop {} ​ /// The first argument of this function is an actual instance of the /// type T with `drop` ability. It is dropped as soon as rece...

文章 Ethernaut 题库闯关 #12 — Privacy

...s(level), bytes32(uint256(5))); // Call the level's `unlock` function and pass the downcasted bytes16 // value we just took from the private slot level.unlock(bytes16(data)); // Assert we have unlocked the contract and passed the challenge assertEq(level.locked(), false); vm....

文章 每周以太坊进展 2023/9/16

...s 优化,用于基准测试 * [ERC 部署](https://dune.com/ilemi/erc-and-eip-starter-kit):Dune 仪表板显示常见 ERC 的部署数量 * [Huff-stack-generator](https://github.com/shafu0x/huff-stack-generator#readme):生成堆栈注释 * [Geas](https://github.com/fjl/geas#readme)(...

文章 应用 ZK 解数独,无需泄露答案

...} ``` 这是一个完整部署的例子: [**ZKPs Made Easy: zkWeb and ZoKrates** ](https://learnblockchain.cn/article/19586) ### References \[1\] Eberhardt, J., & Tai, S. (2018, July). Zokrates-scalable privacy-preserving off-chain computations. In 2018 IEEE International Conference o...

文章 Ethernaut 题库闯关 #17 — Recovery

...缀(RLP)序列化](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/)。 在我们的例子中: * 发送者是`Recovery`合约本身(合约工厂) * nonce是指合约本身创建的合约数量。要记住一件重要的事情:合约的nonce从1开始,而不是0! 在...

文章 隔离开发环境:降低网络攻击风险

...yfrin/web3-dev-containers/tree/main?tab=readme-ov-file#quickstart---vscode-and-foundry-on-a-new-project-unmounted) 以设置一个基于 VSCode 的 Docker 容器(称为开发容器),这样你就可以以额外的安全层运行你的脚本!这个仓库将: 1. 启动一个已经安装 `f...

文章 理解加密货币中的代币经济学:如何有效地管理你的营销预算

... [消费者信任度高出 46%](https://aads.com/blog/the-importance-of-branding-in-crypto-marketing/),直接影响营销效果和预算分配。在规划促销策略时,**代币经济学** 与营销成功之间的这种相关性不容忽视。 行业标准建议将[总体项目预算的 5-10% ...

文章 L2 - zkSync证明聚合

...part = outer PairingsBn254.G1Point[2] memory combined = combine_inner_and_outer(aggregated_g1s, recursive_proof_part); valid = PairingsBn254.pairingProd2(combined[0], PairingsBn254.P2(), combined[1], vk.g2_x); return valid; } ``` 该函数通过aggregate_for_verification函...

文章 使用 Tenderly 调试 Hardhat 智能合约项目

...ls/ReentrancyGuard.sol"; /** * @notice This code has not been audited and may contain vulnerabilities. * Never use in the production. */ contract Staking is ReentrancyGuard { MyToken public token; Rewards public rewards; mapping(address => uint256) public stakedAmounts; ...

文章 sui-move基础(六):letsmove-task5

...; let caller = tx_context::sender(ctx); // get the input value and assert let input_value = coin::value(&input); let output_value = amount * 1000 / 2000; // amount千万不要写成input_value! assert!(input_value >= amount, EInputNotEnough); // transection the input ...

文章 桥接比特币生态系统:Ola Chain、Onis 和 Massive 的作用

...生态系统中发挥关键作用。最新的更新,即 Massive v2.0.7(Android、iOS、Solana Saga 和 Google Chrome),进一步增强了用户体验和功能。展望未来,Massive 将与更多的比特币生态系统项目集成,加强它们的安全性,同时与多元化和积极参...

文章 金融领域的代币化:创造新型投资工具

...w.forbes.com/sites/forbestechcouncil/2024/03/07/what-are-real-world-assets-and-how-can-they-change-wealth-management/) 的说法,到 2030 年,私募市场的通证化可能会增长超过 80 倍,达到近 4 万亿美元的价值。[Boston Consulting Group](https://www.linkedin.com/pulse/tokeni...

文章 Vara 入门实战

...------ | | init | 初始化状态 | load, send, reply | | handle | 处理收到的消息 | load, send, reply | | handle_reply | 处理收到的回复 | load, send | | state | 查询状态(只读) | load, reply | ## init ```rust static mut ST...