找到约 13 条结果

文章 区块链中的数学-欧几里得算法

...整数𝑎和正整数𝑏,求这两个数的最大公因数,记为gcd(a,b)的算法, 其中gcd代表greatest common division首字母。 最大公因数的问题很基础,也很好理解。有多种方法实现,欧几里得算法利用以下性质: gcd(a,b)=gcd(b, a mod b) mod是...

文章 证明聚合方案:SnarkPack 和 aPlonk

## 导言 [zk-SNARKs](https://learnblockchain.cn/article/22822/) 是一种强大的密码学原语,它允许一方(称为证明者)向第二方(称为验证者)证明他知道一个给定的秘密,而不泄露任何关于该秘密的信息。这方面的应用包括,例如,在去中...

文章 以太坊地址的推导方式(EOA、CREATE 和 CREATE2)

## 以太坊地址如何推导(EOA、CREATE 和 CREATE2) 在以太坊上,智能合约可以通过以下三种方式部署: 1. 外部账户(EOA)发起交易,其中 `to` 字段设置为 `null`,`data` 字段包含合约的初始化代码。 2. 智能合约调用 `CREATE` 操作...

文章 Fixed Point Math Toolkit in TON Smart Contracts: An In-depth Analysis

> TON (The Open Network) stands as a beacon of innovation in the decentralized blockchain ecosystem, designed to provide an efficient, scalable, and user-friendly environment for developing and running smart contracts. At the heart of smart contract development lies the intricate dance of mathematic...

文章 比特币钱包备份方案简史

...bbf7739c2ccbb73f99acc816687daa86ef51a7fb95c19f170da5aafbf49a9e4177abc4cad13a3c7ca2 ``` 助记词示例: ```hljs sql check day then tiger collect join hotel hawk absorb ginger wash track crowd hero scale ``` 你可以在这个网站上 [生成](https://iancoleman.io/bip39/) 自己的 BIP39 助...

文章 什么是跨链(下)

...的跨链」、「现实中的跨链」和「资产跨链」**](https://learnblockchain.cn/article/2959)**,**本期文章,我将继续给大家介绍**「跨链的四种方法」**—— ## 04 跨链的四种方法 A星大佬看完了C公司的做法之后,立刻召集下属开电话会...

文章 写给比特币人的 Chia Lisp 编程语言介绍

> *作者:ajtowns* > > *来源:* 我准备 [再续](https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2022-March/020036.html) [前言](https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2023-October/022099.html),探讨如何为比特币脚本编程设计 Lisp 语言的一...

文章 Payment Channels

Payment Channels, also called Micropayment Channels, are designed to allow users to make multiple Bitcoin transactions without committing all of transactions to the Bitcoin main chain. Therefore, it is made possible to do Bitcoin transactions at very high speed and very low cost. ## What Payment Ch...

文章 In-Depth Understanding of TON Wallet Types: A Comprehensive Analysis of the Integrated V5 Wallet

> TON (The Open Network) blockchain has set itself apart in the crypto space with its innovative approach to wallet contracts. The evolution from V1 to V4 wallets has been a journey of continuous improvement and innovation. Now, with the introduction of the V5 wallet, we are witnessing a significant...

文章 ECDH秘钥协商算法原理

...是椭圆曲线迪菲-赫尔曼秘钥交换(Elliptic Curve Diffie–Hellman key Exchange),主要是用来在一个不安全的通道中建立起安全的共有加密资料,一般来说交换的都是`私钥`,这个密钥一般作为“对称加密”的密钥而被双方在后续数据传...

文章 【zkMIPS系列】FRI预备知识

...基本概念,表示为变量和系数的线性组合,记为 $$ p(x)=a_0+a_1 x+a_2 x^2+⋯+a_d x^d $$ 其中 $a_i$是系数,$d$是多项式的阶。多项式广泛应用于数学、物理学和工程学,尤其在密码学中扮演着核心角色。多项式的可组合性、简单的代...

问题 如何解析以太坊中uniswap的交易数据

各位大佬好,我想从uniswap的交易记录中解析出是哪两个token进行了swap。 比如这个交易https://etherscan.io/tx/0x165832e53495743460e88a60e4514a1500d4e94d3e56c121d944fc387a41cf06 我通过web3.py得到的log是这样的: ``` AttributeDict({'blockHash': HexBytes('0x48ec...

文章 Deep Dive into the TON Smart Contract Compilation Process: Compiling Func and Tact Languages

> In the rapidly evolving landscape of decentralized applications (DApps), smart contracts have emerged as the cornerstone of blockchain technology, enabling trustless transactions and complex interactions on the network. The Telegram Open Network (TON), with its innovative approach to scalability a...