找到约 13 条结果

文章 DAOs的基础及其运作方式

目录 [切换](https://blockapps.net/blog/the-basics-of-daos-and-their-functioning/#) ## 去中心化自治组织 (DAO) 简介 去中心化自治组织 (DAO) 是一种革命性的新型组织,它基于区块链技术运作,为决策和资源分配提供了一种去中心化和自治的方法...

文章 智能合约安全审计入门篇 —— 抢跑

...dress in lowercase + solution + secret). Users can only commit once and if the game is active. */ function commitSolution(bytes32 _solutionHash) public gameActive { Commit storage commit = commits[msg.sender]; require(commit.commitTime == 0, "Already committed"); co...

文章 【Rust 基础入门】(08) | 元组、结构体、枚举

... let (name, age, height) = person; println!("{} is {} years old and {}m tall.", name, age, height); // 使用索引访问元组元素 println!("Name: {}, Age: {}, Height: {}", person.0, person.1, person.2); } ``` ### 作为函数返回值 ```rust fn square_and_cube(n...

文章 二十五年后回顾:尼克·萨博的微支付与精神负担理论

...> > _来源: [https://bitcoinmagazine.com/technical/szabos-micropayments-and-mental-transaction-costs-25-years-later-](https://bitcoinmagazine.com/technical/szabos-micropayments-and-mental-transaction-costs-25-years-later-)_ 如果你每一次在线网页上的连接,都要且只要花费不到...

文章 damn-vulnerable-defi Puppet and puppetV2-题解

...ere's a DVT market opened in an Uniswap v1 exchange, currently with 10 ETH and 10 DVT in liquidity. Starting with 25 ETH and 1000 DVTs in balance, you must steal all tokens from the lending pool. ``` # `PuppetPool.sol` ## 合约分析 该合约是借贷合约,我们主要关注其中的`bor...

文章 verge下最节省gas的智能合约写法

... if (right < size) { // the check guarantees that `left` and `right` are both valid uint32 uint32 lIndex = uint32(left); uint32 rIndex = uint32(right); uint256 lValue = self.items[self.tree[lIndex]].value; uint256 rValue = self.it...

文章 使用hardhat 开发以太坊智能合约-发布合约

... }); await lock.deployed(); console.log( `Lock with 1 ETH and unlock timestamp ${unlockTime} deployed to ${lock.address}` ); } // We recommend this pattern to be able to use async/await everywhere // and properly handle errors. main().catch((error) => { console.error(er...

文章 从随机接入到智能连接:基于学习的稀疏恢复用于联合活动...

... train_test_split import matplotlib.pyplot as plt ## --- 1. System Model and Data Generation --- ## This function simulates the wireless communication system. ## It creates a sparse channel vector and generates received signals. def generate_data(num_devices, num_antennas, num_samples, sparsity...

文章 将证明计算从信标节点转移到交易发送者

...tBlob SenderBeacon NodeExecution ClientBlob Sendercompute blob cell proofs and KZG commitmentsverify tx, cell proofs and add to blob mempoolblock production begins"extend" blobs, assemble data columns and publishsend signed EIP-4844 transactionget blobs bundlereturns blobs, commitments, and cell pro...

文章 UniswapX 协议白皮书

...ynolds, Austin Adams, Will Pote, Mark Toda, Alice Henshaw, Emily Williams, and Dan Robinson. 2023. Uniswap v4 Core [Draft]. (2023). [5] Hayden Adams, Noah Zinsmeister, and Dan Robinson. 2020. Uniswap v2 Core. Retrieved Jun 12, 2023 from https://uniswap.org/whitepaper.pdf [6] Hayden Adams, Noah Z...

文章 另类央行的演进之路

...有信用。* 参考文献: Bengt Holmstrom (2015), Understanding the role of debt in the financial system Claudio Borio (2019), On money, debt, trust and central banking Jon Frost, Hyun Song Shin and Peter Wierts (2020), An early stablecoin? The Bank of Amsterdam and the gover...

文章 Swaproot:更便宜、更隐私的链上入账体验

...in 地址。 ## [](https://www.btcstudy.org/2024/03/14/swaproot-cheaper-and-more-private-on-chain-desposits-on-Phoenix/#%E4%BB%80%E4%B9%88%E6%98%AF-swap-in-%E4%BA%A4%E6%98%93%EF%BC%9F "什么是 swap-in 交易?")什么是 swap-in 交易? 一笔 `swap-in` 交易就是一笔链上交易,...

文章 密码学家族:Blum, Blum和Blum

...成中使用。 使用的代码是 \[ [这里](https://asecuritysite.com/random/blum)\]: ``` import sympy import random import re import sys x = 3*10**10 y = 4*10**10 seed = random.randint(1,1e10) def lcm(a, b): """Compute the lowest common multiple of a and b""" # 计算 a 和 b 的最小...