Technical Analysis of Bitcoin Layer 2 Projects
Blog iconzhongxuqi
May 18
It is widely known that Ethereum's Layer 2 technology is currently the most successful Layer 2 solution. Compared to the scaling solutions of Polkadot and Cosmos, Layer 2 technology not only effectively inherits the security of Layer 1 but also allows for truly permissionless access to building Layer 2. As the pioneer of the blockchain ecosystem, Bitcoin's scalability has long been criticized, seriously impacting the development of its ecosystem.What are the current Layer2 projects ...

Most popular by zhongxuqi

解读闪电网络Lightning Network原理

解读闪电网络Lightning Network原理

Eth智能合约签名校验 - 可用于实现多签合约

Eth智能合约签名校验 - 可用于实现多签合约

Understanding the Ethereum Cancun Upgrade

Understanding the Ethereum Cancun Upgrade

打造以太坊私有链,合约的部署与使用

打造以太坊私有链,合约的部署与使用

用Hardhat开发智能合约,并发布ERC721 NFT

用Hardhat开发智能合约,并发布ERC721 NFT

Understanding Bitcoin Halving in Code

Understanding Bitcoin Halving in Code

zhongxuqi

Written by
zhongxuqi
Subscribe

2025 Paragraph Technologies Inc

PopularTrendingPrivacyTermsHome
Search...Ctrl+K

zhongxuqi

Subscribe
Understanding Bitcoin Halving in Code
Blog iconzhongxuqi
Mar 22
As is well known, Bitcoin halving is scheduled in end of April 2024. But most people only are aware of Bitcoin halving every four years. They may not know the reason behind the for-year circle or why new Bitcoin blocks are minted every 10 minutes. The article will delve into the reasons behind the 10-minute interval for new Bitcoin blocks minting and and the occurrence of Bitcoin halving every four years. Bitcoin Github repo: https://github.com/bitcoin/bitcoinHow did the 10-minute interval fo...
Understanding the Ethereum Re-Staking Race
Blog iconzhongxuqi
Mar 21
In July 2023, the emergence of EigenLayer opened up a brand new market for re-staking, causing a stir in the industry. From the Total Value Locked (TVL), it is evident that each round of re-staking capacity is quickly filled, indicating a significant demand for re-staking in the market. In this article, we will delve into the principles and strategies of this track to provide a deeper understanding.What are the issues with Ethereum staking? Why is re-staking necessary?Ethereum staking facing ...
Understanding the Ethereum Cancun Upgrade
Blog iconzhongxuqi
Mar 21
The highly anticipated Ethereum Cancun upgrade was finally completed on March 13, 2024, marking a significant hard fork upgrade for Ethereum in 2024. This upgrade primarily helped Ethereum improve network efficiency and reduce transaction fees, further driving the development of Ethereum's Layer 2 solutions.Why did the Cancun upgrade reduce Gas fees for Layer 2 ?The Cancun upgrade includes a significant update, known as EIP-4844. EIP-4844 introduces a new Blob field on transactions, whic...
解读闪电网络Lightning Network原理
Blog iconzhongxuqi
Feb 21
随着Damus最近的大火,其内置的比特币闪电网络Lightning Network打赏功能也走进了大众的视野。闪电网络的比特币容量也随之猛增到5400枚,创下历史新高。那么下面我们就重点来介绍一下闪电网络的作用和工作原理。什么是闪电网络闪电网络是建立在Bitcoin链上的2层网络,即Bitcoin的L2。它的主要作用是解决比特币扩展性和交易手续费高的问题。 可以说闪电网络的TPS远超市面上所有区块链技术,如下表所示Lightning Network: TPS 40,000,000Solana: TPS 65,000Visa: TPS 24,000Paypal: TPS 193Ethereum: TPS 15Bitcoin: TPS 7闪电网络的TPS是目前区块链所有扩容方案中最高的,满足了目前所有的支付场景需求。闪电网络的工作原理闪电网络的基本流程就是在用户之间点对点地建立一些支付通道,建立好通道的用户可以方便地进行链下建议。然后随着越来越多的用户之间建立了支付通道,就形成了一张支付通道网络,就此闪电网络就形成了,只要在网络中的用户之间都可以进行相互链下交易。建立支付通道支付通道...
解读Damus和去中心化社交协议Nostr
Blog iconzhongxuqi
Feb 21
近期damus社交软件大火,作为web3赛道率先上线app store的应用,很快引起了圈内圈外人士的关注。那么不少会有一个疑问,同样作为社交软件,web3赛道的damus相比于web2赛道的twitter和微博有什么优势,用户为什么要迁移到web3社交产品呢? 首先,看下damus官方给出的web2社交的一些关键问题:web2社交有广告,比如twitter上经常会看到一些广告,非常影响用户体验。web2社交会使用一些推荐技术让用户上瘾,比如twitter、tiktok都有自己的推荐算法,推荐算法会根据用户喜好不断推荐一些类似的内容,吸引用户留存。web2产品能封禁用户,比如特朗普的twitter账户就曾被twitter封禁。web2产品能对用户限流,导致用户的推文无法被其它用户看到。web2产品有很多垃圾信息。上述问题导致web2产品无法实现真正的言论自由,根本原因在于web2产品是有专门中心化的公司和机构运营和维护,而且永远无法被替换。这些公司和机构为了盈利的目的,会破坏社交软件的言论自由。 为了实现真正的言论自由,web3就是一个很好的技术发展方向。web3的任何产品都不会...
密码管理EasyPass开发笔记(第0篇)
Blog iconzhongxuqi
Feb 1
作为开始篇,主要想讲一下开发这款软件的初衷,顺便打个广告,哈哈。后续我会讲解APP开发的具体过程(包括前端、APP和后端),做得不好的地方欢迎大家来指出。 我是一名程序猿,平时要存大量密码、文本,包括服务器密码和各种论坛账号,导致老是忘记密码甚至账号。如果只依靠记忆,密码容易忘记而且很重复,一旦密码被黑客撞库就会有无法预料的严重后果;如果到本地,不仅不安全,而且检索起来比较麻烦;如果放在云笔记或者云硬盘,使用的时候很麻烦,同时也不好检索。 这时候就想着要没有什么密码管理工具,google一搜,就找到了1password。1password虽然很强大,但是有点贵,一年算下来需要200多元。作为一名程序猿,我觉得我也能做出一个一样强大的密码管理工具,而且可以把价格做得比1password低很多,让大家都能体验密码管理工具的方便和实用。此外密码还能自动生成,保证了不同网址之间的账号相互隔离,使得黑客无法撞库攻击。 后面的文章我将分为几部分去介绍的我密码管理工具: 1、EasyPass背后的密码学原理,利用密码学保证用户账号密码的绝对安全。 2、EasyPass后端的架构设计和开发。 3...
用Hardhat开发智能合约,并发布ERC721 NFT
Blog iconzhongxuqi
Jan 31
1. 安装Hardhatnpm install --save-dev hardhat 2. 初始化Hardhat工程3. 安装官方contract库npm install @openzeppelin/contracts 4. 完成ERC721 NFT智能合约代码目录contracts/DrawNFT.sol// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; contract DrawNFT is ERC721, ERC721URIStorage...
用Hardhat开发智能合约,并发布ERC20 Token
Blog iconzhongxuqi
Jan 31
1. 安装Hardhatnpm install --save-dev hardhat 2. 初始化Hardhat工程3. 安装官方contract库npm install @openzeppelin/contracts 4. 完成Token智能合约代码目录contracts/DrawToken.sol// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract DrawToken is ERC20, Ownable { constructor() ERC20("DrawToken", "DTK") {} function mint(address to, uint256 amount) public onlyOwner { _mint(to, amount); } } 5. 完成合约部署代码目录sc...
Eth智能合约签名校验 - 可用于实现多签合约
Blog iconzhongxuqi
Jan 31
1. 对message进行签名from eth_account.messages import encode_defunct from web3 import Web3 from eth_keys import keys KEY = ... # 填写账户私钥 w3 = Web3(Web3.HTTPProvider(<input eth node url/>)) # 请填写以太坊的节点url account = w3.eth.account.from_key(KEY) print('address: ', account.address) rawText = 'hello' # 签名message signedMessage = account.sign_message(encode_defunct(text=rawText)) print('message hash: ', signedMessage.messageHash.hex()) # print(signedMessage) print('v: ', int(signedMessage.v)) print('r...
打造以太坊私有链,合约的部署与使用
Blog iconzhongxuqi
Jan 31
1. 下载$ git clone https://github.com/ethereum/go-ethereum.git 2. 编译$ cd go-ethereum $ make geth 把./build/bin/geth添加到可执行路径中3. 配置初始状态保存配置到genesis.json文件{ "config": { "chainId": 7777, "homesteadBlock": 0, "eip150Block": 0, "eip155Block": 0, "eip158Block": 0, "byzantiumBlock": 0, "constantinopleBlock": 0, "petersburgBlock": 0, "ethash": {} }, "difficulty": "1", "gasLimit": "8000000", "alloc": { "7df9a875a174b3bc565e6424a0050ebc1b2d1d82": { "balance": "300000" }, "f41c74c9ae680c1aa78f42e5647a62f353...