找到约 14 条结果

文章 Solidity 最新 0.6.8 中文文档发布

...理解以太坊智能合约](https://learnblockchain.cn/2018/01/04/understanding-smart-contracts/) 及 [深入浅出以太坊虚拟机](https://learnblockchain.cn/2019/04/09/easy-evm/) [Solidity](https://learnblockchain.cn/docs/solidity/) 是静态类型语言,支持继承、库和复杂的用...

文章 加密货币质押:流动性质押代币详解

...…] 目录 [Toggle](https://blockapps.net/blog/staking-in-crypto-understanding-liquid-staking-tokens-explained/#) ## 理解流动性质押代币 ### 什么是流动性质押代币? 流动性质押代币 (LST) 代表了加密货币 **质押** 的革命性进步。 当用户通过专门的协...

文章 彩虹角色与激励:ABPS + FOCILR + AS - 权益证明/经济学

...标 ([1](https://learnblockchain.cn/article/19384#user-bidding-textpayment-and-textreward-rules-9), [2](https://learnblockchain.cn/article/17632))。[提议者-构建者分离](https://ethereum.org/en/roadmap/pbs/) (PBS) 旨在将更专业的区块构建角色与区块提议角色分离,目前的...

文章 初学者的DeFi指南

...如[Compound](https://compound.finance/), [dYdX](https://dydx.exchange/), and [Dharma](https://www.dharma.io/). 。 这些智能合约的一个令人印象深刻的特征是,借款人无需找到贷方,反之亦然。 取而代之的是,智能合约取代了中间人的角色,并根据供...

文章 [译] Hardhat 入门教程

...scope. // `describe` receives the name of a section of your test suite, and a callback. // The callback must define the tests of that section. This callback can't be // an async function. describe("Token contract", function () { // Mocha has four functions that let you hook into the the tes...

文章 理解加密货币中的通证经济学:市值比较分析

...t/) 开启你的旅程 目录 [切换](https://blockapps.net/blog/understanding-tokenomics-in-crypto-a-comparative-analysis-of-market-cap/#) ## 理解代币经济学:加密货币价值的基石 代币经济学从根本上通过四个关键组成部分塑造了加密货币产生和维持价值...

文章 03 Rust中的结构体

...种:单元结构体,元组结构体以及句名结构体,它代表`And`含义,在生成时必须为所有成员赋值。具体形式如下: ![3.1.png](https://img.learnblockchain.cn/attachments/2023/03/Cb8af0Jf6407552eb17c6.png) ## 3.2 结构体的内存排布 计算机按照字...

文章 TFHE-rs v0.6:零知识支持和 GPU 上的有符号整数运算

...及服务器如何验证密文并对其进行计算: ``` rust use rand::prelude::*; use tfhe::prelude::FheDecrypt; use tfhe::set_server_key; use tfhe::zk::{CompactPkeCrs, ZkComputeLoad}; pub fn main() -> Result { let mut rng = thread_rng(); let max_num_message = 1; let...

文章 加密货币 Staking:2024 年最佳 Staking 池的综合比较

...https://www.forbes.com/sites/leeorshimron/2023/01/21/ethereums-centralized-and-decentralized-liquid-staking-providers-battle-for-dominance/) 的数据,目前有超过 **680 万个 ETH** 被锁定在流动性质押池中。 质押池已经成为解决加密货币质押中常见障碍的方案,...

文章 新兴市场与未来趋势

目录 [切换](https://blockapps.net/blog/emerging-marketplaces-and-future-trends/#) ## 新兴的 NFT 市场 数字资产的世界已经被非同质化代币(NFTs)的兴起彻底改变,它们以风暴之势席卷了艺术、游戏和收藏品行业。随着对 NFT 的需求持续飙升,一...

文章 推荐 Dune SQL 代码风格

...= lower('0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d') -- BAYC        and block_time >= now() - interval '30' day ) select * from filtered_sales; ``` ## **编写清晰一致的 SQL 代码** 在 Dune 上分析链上数据时,编写清晰和一致的 SQL 代码不仅是为了让查询...

文章 突破区块链不可能三角(三) — POS与POW-DAG

...的学术论文的,基于随机数的POS:Snow White,Ouroboros,Algorand和Dfinity。 无论是从可扩展性角度还是实现角度,这几个算法都可以说是可扩展POW的领袖选择思路在POS中的对应。其中,Snow White和Ouroboros相当于Bitcoin-NG的POS对应,而Al...

文章 使用Substrate开发区块链存证dApp

...he executable itself) > > error: failed to run custom build command for `librocksdb-sys v6.7.4` > ``` > > - **解决办法** > > ```bash > $ yum install -y llvm-devel > ``` > > - **编译错误3** > > - **错误描述** > > ```bash > Compiling ...

文章 Hack Replay - Fei Protocol

...his method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } ``` 从`isContract`...