找到约 13 条结果

文章 区块链中的数学 -欧拉定理和欧拉函数

## 写在前面 上一节介绍了[RSA加解密过程](https://learnblockchain.cn/article/1548),用到了欧拉定理等知识点。这一节详细说说欧拉定理及其相关。 ## 欧拉定理 这里所说的欧拉定理是指数论中的欧拉定理,也称欧拉函数定理。该...

文章 格密码学基础(三):LWE和其他格问题的难度

> ❝ > > 原文:https://eprint.iacr.org/2024/1287 > > ![Image](https://img.learnblockchain.cn/2025/11/26/62212548_image.webp) > > 作者:Vadim Lyubashevsky > > 译者:Kurt Pan 我们现在将给出LWE问题的几何视角。虽然这种联系对于理解大多数密码构造如何工作...

文章 03|变量与数据类型

...的浮点数类型 ### 布尔类型 - bool:布尔类型,true或者false ### 字符型 - char:字符类型 ### 数组类型 - array:固定长度的数组类型,[T;N] T表示元素类型,N表示表示编译期大小,数组元素个数,,或者数组长度。 ### 函数...

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

...整数𝑎和正整数𝑏,求这两个数的最大公因数,记为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...

文章 什么是跨链(下)

...的跨链」、「现实中的跨链」和「资产跨链」**](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$是多项式的阶。多项式广泛应用于数学、物理学和工程学,尤其在密码学中扮演着核心角色。多项式的可组合性、简单的代...