找到约 13 条结果

文章 深入 Uniswap V4 源码 - BalanceDelta

## BalanceDelta ### 类型说明 BalanceDelta 类型用一个 `int256` 类型同时表示 `token0` 和 `token1` 的余额变化值。 ```solidity /// @dev Two `int128` values packed into a single `int256` where the upper 128 bits represent the amount0 /// and the lower 128 bits represent ...

文章 【solidity进阶】合约的 lib 库

## 简介 在 Solidity 中,库(Library) 是一种特殊的智能合约,用于封装可复用的逻辑或功能。库与普通合约的区别在于,它不能保存状态变量,也不能接收 ETH。库可以被其他合约直接调用,从而减少代码冗余,提高开发效率。 ...

文章 BitVM白皮书中英文版本

## BitVM: Compute Anything on Bitcoin[](#bitvm-compute-anything-on-bitcoin) ## BitVM:在比特币上进行任何计算[](#bitvm-zai-bi-te-bi-shang-jin-hang-ren-he-ji-suan) 作者:Robin Linus robin\@zerosync.org [www.bitvm.org](http://www.bitcoin.org/) 2023.12.12 中文翻译:Bitla...

文章 阈值组签名、分布式密钥生成DKG、BLS签名

...形式 定义在域$F$上的$n-1$次多项式的系数表示: $$f(x)=a_0+a_1x+a_2x^2+...+a_{n-1}x^{n-1}$$ ### 点的表示形式 假设有$n$个不同的点$(x_1,y_1),(x_2,y_2),...,(x_n,y_n)$,那么根据拉格朗日插值法,该多项式式可以表示为: $$f(x)=y_1\ast h_1(x)+y_2\a...

文章 Gnosis的ConditionalTokens解读

# 1. 原理 ConditionalTokens是一种基于ERC1155的代币,用于预测市场。对于一个预测问题,往往有多个选项,比如股市明天的走势,就有涨、平、跌三种情况,ConditionalTokens可以提供这三种情况,并基于Oracle进行预测结果的回写。 # ...

文章 In-Depth Analysis of the TON Smart Contract stdlib_ext Library: A Survey of Extended Features

> TON (The Open Network) is a decentralized blockchain platform known for its powerful and flexible smart contract capabilities. During the development of TON smart contracts, the stdlib.fc library provides basic functional support. However, for some advanced or specific requirements, stdlib.fc may ...

文章 1inch协议手续费审计

## 目录 - [目录](#table-of-contents) - [总结](#summary) - [范围](#scope) - [系统概述](#system-overview) - [安全模型和信任假设](#security-model-and-trusted-assumptions) - [信任假设](#trust-assumptions) - [低风险](#low-severity) - [缺少文档字符串](#missing-docstr...

文章 深入解析 Zk-SNARKs:第三部分

**这是解释 zk-SNARKs 背后技术的系列文章的第三部分;之前的文章关于** [_二次算术程序_](https://learnblockchain.cn/article/10973) **和** [_椭圆曲线配对_](https://learnblockchain.cn/article/10972) **是必读材料,本文将假设读者对这两种概念有所了...

文章 以太坊离线签名交易接口sendRawTransaction()的用法

...签名交易的实现过程分以下步骤: (1)使用接口unlockAccount()解锁本地钱包 > personal.unlockAccount("0xe4697cBB8955526C703A4441f219cf0A04447a9B", "123", 0) true (2)使用接口getTransactionCount()获取nonce的数值 > eth.getTransactionCount("0xe4697cBB8955526C...

文章 对去中心化金融(DeFi)杠杆交易协议的探索

...lockchain.cn/article/13021) - [https://medium.com/verse2/defi-derivatives-리즈-2-defi-derivatives-ecosystem-options-6ed939db647d](https://learnblockchain.cn/article/13014) - [https://learnblockchain.cn/article/13018](https://learnblockchain.cn/article/13018) - [https://collectiveshift.io/def...

文章 Go语言反射深入讲解

...类型包括: - `reflect.Type`:表示类型信息。 - `reflect.Value`:表示值信息。 ### 获取类型信息 **使用 reflect.TypeOf** ```go package main import ( "fmt" "reflect" ) func main() { var a int = 10 t := reflect.TypeOf(a) fmt.Println(t) // 输出...

文章 Solidity 继承

...(称为父类或基类)继承属性和方法。 [Solidity](https://learnblockchain.cn/course/93) 也支持继承, 当然这里对应的是派生合约(或称子合约)及父合约。 派生合约通过继承获得了父合约的特性,合理的使用继承可以带来这些好处: 1...

文章 现代稳定币 - Liquity V2 是如何构建的

![image.png](https://img.learnblockchain.cn/attachments/2025/03/m1ix3GYu67cd883c1196c.png) ## 介绍 Liquity V2是一个算法稳定币协议,建立在Liquity V1协议的基础之上,允许用户使用ETH作为抵押品铸造LUSD稳定币。其定义特征包括无利息借款和低抵押比...