找到约 11 条结果

文章 关于拥有710k tps的索拉纳PoH共识算法的个人感想

...4000 hashes per second would generate an additional 160 kilobytes of data, and would require access to a GPU with 4000 cores and roughly 0.25-0.75 milliseconds of time to verify 举的例子是GPU拥有4000核心(GPU的核心与CPU的概念不一致, 甚至Nvidia与AMD对GPU核心定义也不一)...

文章 预言机 Oracle 的原理和实现

...好的合约实例 ​ // NewCheckpointOracle binds checkpoint contract and returns a registrar instance. func NewCheckpointOracle(contractAddr common.Address, backend bind.ContractBackend) (*CheckpointOracle, error) { c, err := contract.NewCheckpointOracle(contractAddr, backend) if err...

文章 每周以太坊进展 2021/04/04

...CALL 操作码的安全性](https://ethereum-magicians.org/t/eip-3074-auth-and-authcall-opcodes/4880/61?u=danfinlay)(还有 Alexey 的回应) * [启用 BLS12-381 支持的路径:EIP2537 和 EVM384](https://docs.google.com/document/d/1DdA1IxSDK5ppC1C2W9uvMW66Y8VToc-vPV5B68ZQvOg) * [EVM384 进...

文章 如何使用 LiteSVM 测试 Solana 程序

...r_id = generate_offer_id(); let (offer_account, _offer_bump) = get_pda_and_bump(&seeds!["offer", offer_id], &test_environment.program_id); let vault = spl_associated_token_account::get_associated_token_address( &offer_account, &test_environment.token_mint_a.pubkey(), ); ...

文章 Cairo 语言介绍

...,如下所示: ```rust // the function takes two parameters: `x` and `y`, // both of type `felt252`, and returns a value of type `felt252`. fn multiply(x: felt252, y: felt252) -> felt252 { // The result of the multiplication expression is implicitly returned. x * y } ##[execu...

文章 Golang 没有abi文件构造合约请求

...成.不依赖完整的 [abi](https://learnblockchain.cn/2018/08/09/understand-abi) 文件.当然直接构造 abi字符串然后`abi.JSON()`.只要理解了 `ABI`的创建步骤,使用json文件创建还是代码直接创建都是可以. ## 观察abigen生成的wapper.go是如何处理合约调用...

文章 如何将代码转换为算术电路

...加法或乘法)。相比之下,其他简单的函数,例如 XOR、AND 或相等性检查,具有更复杂的结构。 ## 算术电路 算术电路是一个有向无环图,涉及数字的乘法和加法。我们可以将其视为评估那些数字上的某些多项式。例如,以下电...

文章 Walrus搭建您的第一个Walrus Site站点

...这会提示你配置新的设置。 #### 2.2.1 前置条件 Sui wallet and Testnet SUI 具体check的命令 ```sh # 创建一个Sui测试网环境, 别名testnet $ sui client new-env --alias testnet --rpc https://fullnode.testnet.sui.io:443 # 切换到testnet $ sui client switch --env test...

文章 深入理解 Uniswap v3 智能合约 - Core(一)

...th the given parameters by transiently setting the parameters storage slot and then /// clearing it after deploying the pool. /// @param factory The contract address of the Uniswap V3 factory /// @param token0 The first token of the pool by address sort order /// @param token1 The second token o...

文章 NFT领域的未来技术创新

.../CryptoCurrency/comments/tcsc29/nfts_have_so_much_use_cases_aside_from_art_and_it/)。罗马尼亚国家信息学研究与发展研究所已经开始尝试这种用例,他们建立了一个 [NFT 市场,供个人访问、传输和存储数字账本上的政府文件](https://www.britannica.com/mo...

文章 构建你的第一个零知识 snark 电路(Circom2)

...Compiles the circuit to wat --O1 Only applies var to var and var to constant simplification -V, --version Prints version information OPTIONS: --O2 Full constraint simplification [default: full] -o, --output Path to the directory whe...