找到约 15 条结果

文章 有趣的比特币脚本(一):基本介绍

...过程”](https://www.btcstudy.org/2023/04/18/interesting-bitcoin-scripts-and-its-use-cases-part-1-introduction/#note2):一些金属块进入了一个熔炉,熔完之后会形成新的一些金属块,旧的金属块就不复存在了。这也是为什么我们更常被使用的概念是 “UT...

问题 请教一下GnosisSafe多签钱包开发的问题

...es32 txHash; // Use scope here to limit variable lifetime and prevent `stack too deep` errors { bytes memory txHashData = encodeTransactionData( // Transaction info ...

文章 近50年后,RSA仍在新闻中:费马对RSA的攻击

...m/google/paranoid_crypto/ import gmpy2 from gmpy2 import mpz, xmpz import random import sys class RSAKey: def __init__(self): # constructor method e=bytearray(0) n=bytearray(0) def Int2Bytes(int_val: int): return int.to_bytes(int(int_val), (int_val.bit_length() + 7) // 8, 'big') ...

文章 有趣的比特币脚本(四):哈希锁

...后,Alice 可以独自花费这笔资金。Policy 语句: ``` or(and(pk(Bob), sha256(H)), and(after(6), pk(Alice))) ``` [编译 ](https://www.btcstudy.org/2023/04/23/interesting-bitcoin-scripts-and-its-use-cases-part-4-hash-locks/#note1) 出来的 Miniscript 代码是: ``` andor(...

文章 如何构建符合反洗钱和反恐融资合规要求的安全去中心化应用程序(dApp)

...ternal&utm_campaign=guides&utm_content=how-to-build-a-secure-dapp-with-aml-and-cft-compliance) 来评估钱包的风险配置,并使用 [Chainlink Functions](https://chain.link/functions) 将这些链下数据引入智能合约。 本指南将引导你构建一个符合 AML 和 CFT 的质押 dA...

文章 12.slither检测器之四——变量重写检测

...de递归调用`_detect_write_after_write`,同时对遍历到的ir,调用`_handle_ir`处理。 在该函数中使用字典变量written 来记录需要被检测的变量。 1. 如果当前节点处理过,就直接返回;如果当前节点没有处理过,就加入处理过的节点集合。 ...

文章 加密货币和区块链风险投资——2025年第一季度

...,共 446 笔交易(环比增长 7.5%)。 ![01 - vc capital invested and deal count](https://img.learnblockchain.cn/2025/05/01/47766848_image.jpg) 虽然 2025 年第一季度是自 2022 年第三季度以来投资额最大的季度,但其中一笔巨额交易占了超过 40% 的资金:MGX...

文章 🎥 如何创建和设置AI代理

...ode.com/?utm_source=internal&utm_campaign=guides&utm_content=how-to-create-and-set-up-aI-agents)) - 一个 [OpenAPI API 密钥](https://platform.openai.com/) ### 你将做什么 - 了解 AI 代理 - 设置 [QuickNode Stream](https://www.quicknode.com/streams?utm_source=internal&utm_campaign=guid...

文章 Move on Sui入门 004-在sui链上发布Coin合约和Faucet Coin合约

...:public_transfer()方法转移代币 + 第二种方法:使用coin::mint_and_transfer()方法铸造并转移代币 + 以上两种方法都要传入铸币权限、铸币数量、接收者地址和 TxContext交易上下文对象 ``` // 铸造代币函数,需要参数:铸币权限、铸币...

文章 电信行业通过基于属性的加密(ABE)迈向后量子时代

...话密钥,其中 R() 是策略 X 和 Y 的布尔规则。这可以包括 AND、OR 和 NOT 运算。 ### CP-ABE 通过 CP-ABE,我们可以根据策略和一组属性生成加密密钥。在这种情况下,我们只能使用正确的属性生成正确的解密密钥。我们将实施的政策...

文章 Web3 DApp 最佳编程实践指南

...验。当前这两个项目还有大量细节等待优化,尚未正式 landing,我认为将开发过程中的经验和总结与大家进行分享,能帮助更多工程师转向 Web3,也有助于项目的长远发展。 这篇文章将会涉及到[开发一个 DApp](https://learnblockchain...

文章 深入 Uniswap V4 源码 - CurrencyDelta 库

...culates which storage slot a delta should be stored in for a given account and currency function _computeSlot(address target, Currency currency) internal pure returns (bytes32 hashSlot) { assembly ("memory-safe") { mstore(0, and(target, 0xffffffffffffffffffffffffffffffffffffffff)) ...

文章 AO-Autonomous-Pet v1.0 | AO 极速入门(二)

...------------------------------------------+---------+           | Handlers            +------------- Create/Read/Write for Pet             ------- ☝️ on-chain ☝️ ------- 👇 off-chain 👇 -------                 +------------+  +------------+  +-----...

文章 选择排序的零知识证明

...: ```jsx template GetMinAtIdx(n) { signal input in[n]; // compute and constrain min and idx // to be the min value in the list // and the index of the minimum value signal output min; signal output idx; // compute the minimum and its index // outside of the constraints var min...

文章 深入探索 Cairo 编程语言:Starknet 的基础与实践

...at you can perform time consuming operations on a machine you don't trust, and check the result very quickly on a cheaper machine. While Cairo 0 used to be directly compiled to CASM, the Cairo CPU assembly, Cairo 1 is a higher level language. It first compiles to Sierra, an intermediate representati...