找到约 13 条结果

文章 又一个circle STARK 教程

...化以前的方案。 - https://eprint.iacr.org/2024/278 - https://x.com/StarkWareLtd/status/1807776563188162562 - https://github.com/Bitcoin-Wildlife-Sanctuary/bitcoin-circle-stark - https://arxiv.org/abs/2107.08473 目前,我们已经有了zkSecurity 、 Vitalik和LambdaClass撰写的...

文章 格密码学基础(一):前言

...nd graded encoding schemes. In CRYPTO (1), volume 9814 of Lecture Notes in Computer Science, pages 153-178. Springer, 2016. [ABD+17] Erdem Alkim, Joppe W. Bos, Léo Ducas, Karen Easterbrook, Brian LaMacchia, Patrick Longa, Ilya Mironov, Michael Naehrig, Valeria Nikolaenko, Chris Peikert, Ananth Rag...

文章 bitcoin:压缩公钥与未压缩公钥

... z y >>= 1 x = x * x % z return number def get_uncompressed_key(compressed_key): Pcurve = 2**256 - 2**32 - 2**9 - 2**8 - 2**7 - 2**6 - 2**4 -1 y_parity = int(compressed_key[:2]) - 2 x = int(compressed_key[2:], 16) a = (pow_mod(x, 3, Pcurve) + 7) % Pc...

文章 首届 Ola 提案和投票竞赛

...和投票资格。 ## 🚩 结果 结果将在 [Discord](https://discord.com/invite/qXfwsRjqh9) 和 [Ola 官方 Twitter](https://twitter.com/ola_zkzkvm) 上公布。 ## 💡 总结 准备好有所作为了吗? 按照本指南 < [https://ola-2.gitbook.io/ola-community-hub/community-participati...

文章 Building a Bitcoin P2TR Tx by Hand

... # 传统 Tx 的序列化格式 ``` 在 [BIP144](https://github.com/bitcoin/bips/blob/master/bip-0144.mediawiki) 中,为隔离见证引入了新的 Tx 序列化格式: ``` [nVersion][marker][flag][txin_count][txins][txout_count][txouts][witnesses][nLockTime] # Segwit Tx 的序列...

文章 解析 Uniswap V2 的兑换函数

...一下如何强制执行 XY = K。 代码再次是 ![An image of code](https://img.learnblockchain.cn/2025/02/26/935a00_b7e8d0adcb204f4b9d41a0a297aab8b0~mv2.png) Uniswap V2 每次 swap 收取 0.3% 的固定费用,这就是我们看到数字 1000 和 3 的原因,但让我们简化它,...

文章 为PQC数字证书做好准备

...下内容的 SLH-DSA-SHAKE-128s 密钥对\[ [这里](https://asecuritysite.com/openssl/mldsa_cert)\]: ``` openssl genpkey -algorithm SLH-DSA-SHAKE-128s -out ml_priv.pem openssl pkey -in ml_priv.pem -pubout -out ml_pub.pem ``` 然后使用公钥来创建一个 CSR(代码签名请求)...

文章 用于零知识证明的有限域与模运算

...为分子乘以分母的乘法逆元,结果模 `p`: ```python def compute_field_element_from_fraction(num, den, p): inv_den = pow(den, -1, p) return (num * inv_den) % p ``` 当分母是 `p` 的倍数时,不可能这样做。例如,$1/7$ 不能在有限域 $p = 7$ 中表示...

文章 UniswapV2Library 代码详解

## UniswapV2Library [Uniswap V2 Library](https://github.com/Uniswap/v2-periphery/blob/master/contracts/libraries/UniswapV2Library.sol) 简化了与交易对合约的某些交互,并被路由合约广泛使用。它包含八个不会改变状态的函数,这些函数在从智能合约集成 Un...

文章 [教程] 创建第一条 Substrate 链

...们会在为你提供帮助**!可以来[这里提ISSUE](https://github.com/substrate-developer-hub/tutorials/issues/new)。 ## 需要做什么 在开始之前,让我们列出在本教程中需要做的事情。 我们会: 1. 搭建开发环境以便能够在Substrate上进行开...

文章 【解读合约审计】Harmony的跨链桥是如何被盗一亿美金的?

...决方案,其方案定义是多种多样的。 ![](https://pic4.zhimg.com/80/v2-c82d2aa504b58881437ad63dd7a0cb1f_720w.jpg) 《来自iosg-跨链桥方案一览,谁能汇聚多链流动性》 ### **1.1、跨链方案有哪些?** 概括来讲,要实现资产价值在另一条链上恒...

文章 Kontigo:Y Combinator 投资的委内瑞拉公司,涉嫌逃避制裁

...**[此处在线阅读完整版本](https://fintechbusinessweekly.substack.com/p/kontigo-ycombinators-venezuela-sanctions)**。 ## 🧠 具有内置智能的更智能的观察名单筛选 随着全球地缘政治局势的变化,在制裁、PEP 和负面媒体观察名单中标记的个人的风...

文章 硬核入门:从零开始,用 Actix Web 构建你的第一个 Rust REST API (推荐 🔥)

...AppState { health_check_response: "I'm Ok.".to_string(), visit_count: Mutex::new(0), }); let app = move || { App::new() .app_data(shared_data.clone()) .configure(general_routes) }; HttpServer::new(app).bind("127.0.0.1:3000")?...