找到约 15 条结果

文章 BTC Lisp 作为 Script 的一种替代

...二叉树) | 0x20 | ENV… | | construct a balanced, left-biased binary tree consisting of each of the arguments构造一棵由所有参数组成的、平衡的、左偏的二叉树 | | `not`(与非门) | 0x09 | A B … | `not` ...

文章 Unlocking the Power of Debugging in TON Smart Contracts: The FunC Debug Toolkit

... Contracts and FunC TON smart contracts are written in FunC (Functional Constructors), a domain-specific language that allows developers to create complex, stateful logic on the blockchain. FunC is designed to be both expressive and secure, enabling developers to write smart contracts that are ef...

文章 SUI CLI常用命令解析2——Client PTB @SUI Move开发必知必会

...ve-vec Given n-values of the same type, it constructs a vector. For non objects or an empty vector, the type tag must be specified. --merge-coins Merge N coins into the provided coin. --move-call Make a move call to a function....

文章 如何创建一个 ZK 智能合约

..., "circuits/quadratic.wasm", "circuits/quadratic.zkey"); // Construct the raw calldata to be sent to the verifier contract const rawcalldata = await snarkjs.groth16.exportSolidityCallData(proof, publicSignals); jsonCalldata = JSON.parse("["+rawcalldata+"]") }) ...

文章 Dilithium(又名ML-DSA)与菲亚特-沙米尔方法的美妙世界

...anathan, V. (2008, May). Trapdoors for hard lattices and new cryptographic constructions. In **加粗**Proceedings of the fortieth annual ACM symposium on Theory of computing** (pp. 197–206). >- 原文链接: [billatnapier.medium.com/...](https://billatnapier.medium.com/the-wonderful-world-of-d...

文章 区块链中的数学 - Halo2 Circuit

...用来构造table column和gate 约束。 ``` impl FieldChip { fn construct(config: ::Config) -> Self { Self { config, _marker: PhantomData, } } fn configure( meta: &mut ConstraintSystem, advice: [Column; 2], ...

文章 Deep Dive into TON Smart Contracts: Implementing Proof-of-Work in the TestGiver Contract

... based on the input complexity level. * **Build New State**: The function constructs a new contract state with the updated seed and PoW complexity, and the current time as the timestamp of the last successful attempt. * **Return Result**: The function returns the updated contract state. ### 6. ...

文章 如何使用 Runes API 在 Bitcoin 网络上开发 Web3 应用

...THE•MOON' # This should match the exact identifier used in the API # Construct the complete API request URL url = f'{base_url}/btc/rune/{rune_identifier}' # Send an HTTP GET request and retrieve the response response = requests.get(url) # Check the response status code if response.sta...

文章 sui-move进阶:vec_map

...eys_values(map); ``` #### 从键和值向量构造映射 ```move /// Construct a new `VecMap` from two vectors, one for keys and one for values. /// The key value pairs are associated via their indices in the vectors, e.g. the key at index i /// in `keys` is associated with the value at inde...

文章 Sui Move 学习:Object & 四种能力

...ate an instance of the `IgnoreMe` struct and ignore it. // Even though we constructed the instance, we don't need to unpack it. fun test_ignore() { let no_drop = NoDrop {}; let _ = IgnoreMe { a: 1, b: 2 }; // no need to unpack // The value must be unpacked for the code to compile....

文章 单向函数算法深入丨区块链技术培训课程#5

...lles Van Assche设计。Keccak采用了一种称为"海绵结构"(sponge construction)的设计,这种设计使得它在安全性和性能上都有独特的优势。 输出长度为 X 位的 SHA-3 哈希函数表示为:SHA3-X(M) 下面以输出长度为 256 位的函数为例...

文章 sui-move基础(四):letsmove-task3

...e attribute can be a field on the object that defines the NFT itself. This construct provides a much more straightforward process for accessing metadata for the NFT as the smart contract that wants the information can just return the name from the object itself. 翻译一下(来自gpt): ...

文章 Ordinal NFT实现原理及Bitcoin Regtest测试网Mint教程

...//docs.lightning.engineering/the-lightning-network/taro/taro-protocol) - [constructing-and-spending-taproot-outputs](https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki#constructing-and-spending-taproot-outputs) - [tapscript-example-with-tap](https://github.com/bitcoin-core/btcdeb/blob/...

文章 用Substrate框架实现一个简单的游戏应用

... 最后,我们需要在运行时构造函数中包含demo模块: ``` construct_runtime!( pub enum Runtime with Log(InternalLog: DigestItem) where Block = Block, NodeBlock = opaque::Block, UncheckedExtrinsic = UncheckedExtrinsic { System: system::{default, Log(ChangesT...

文章 【zkMIPS系列】Poseidon hash设计流程 & 代码

... # 1. 海绵结构 Poseidon哈希函数采用下面的海绵结构(Sponge Construction)来进行设计,其中P是Posedion每轮的置换函数,$I$是初始状态。假设初始状为$I$为全$0$向量,有一个消息$m=m_1||m_2||m_3||m_4$,输出为$h=h_1||h_2$,且每个$m_i$和$h_i$都...