找到约 14 条结果

文章 可初始化的智能合约设计模式

...变量中。在代理中添加一个构造函数,如下所示: ``` constructor( string memory name_, string memory symbol_, uint256 maxSupply_ ) { name = name_; symbol = symbol_; maxSupply = maxSupply_; } ``` 这不是一个好的解决方案,因为在代理...

文章 基于格的哈希函数

... C., Vaikuntanathan V.** Trapdoors for hard lattices and new cryptographic constructions [C]. *Proceedings of the 40th Annual ACM Symposium on Theory of Computing*. ACM, 2008.

文章 2022年夏季我们正在阅读的一些书籍

...# …来自 Scott Duke Kominers,研究团队: **_Auctions: The Social Construction of Value_,作者:Charles Smith。** “这部经典而生动的社会学著作探讨了拍卖如何在整个社会中涌现,作为建立社区对价值共识的一种方式。(听起来很熟悉?)”...

文章 In-Depth Analysis of the TON ADNL Protocol: Building Secure and Efficient P2P Communication Network

...novative neighbor table mechanism, enables nodes within the TON network to construct an efficient and resilient network topology. This topology is not static; it is a living, breathing entity that adapts to the ebb and flow of network traffic, node availability, and changes in the network's overall ...

文章 Substrate 入门(7) - Substrate的模型设计

...`--execution` : 对于所有的执行采用的方式 * `--execution-block-construction` : 对于打包区块执行的时候采用的方式 * `--execution-import-block`:从文件导入区块执行的时候采用的方式 * `--execution-offchain-worker`:offchain 执行的时候采用的方式...

文章 TVM Smart Contract Optimization: In-Depth Analysis of Inline and Inline_ref Specifiers

...ressions are pre-evaluated at compile time, and loop unrolling, where loop constructs are expanded to reduce the overhead of loop control. * **Inlining Strategies:** Compilers may use various strategies to decide when to inline a function. These strategies can be based on heuristics, such as the s...

文章 针对Node.js构建ROP链

...d += p64(0x0) payload += p64(bss+offset+0x30) --- ## 更改后 def construct_execve_cmd(cmds): null_cmd = b'\x00'.join(cmds) null_cmd += b'\x00' * (8 - len(null_cmd) % 8) argv_offsets = [0] + [len(c)+1 for c in cmds[:-1]] # +1 for null 字节 argv_offsets.append(len(cmds[...

文章 Aptos Move 控制流解析:IF、WHILE与LOOP的深入解读

...制循环流程。 ## While, For, and Loop 实操 Move offers three constructs for looping: `while`, `for`, and `loop`. ```rust module 0x42::Demo3 { use std::debug; #[test] fun test_if() { let x = 5; let x2 = 10; if (x == 5) { debug:...

文章 Move中的设计模式(4)——Witness

...:xcoin::X; public fun publish() { // Illegal, X can not be constructed here. coin::publish_coin(X {}); } } ``` 那么如果此时有一个hacker想要抢先注册这个token,那么需要构造模块中的x提前调用`publish_coin`函数,但是由于Move中的...

文章 可升级代理合约学习笔记

...ementation behind the proxy. */ contract ERC1967Proxy is Proxy { constructor(address implementation, bytes memory _data) payable { ERC1967Utils.upgradeToAndCall(implementation, _data); } function _implementation() internal view virtual override returns (address) { ...

文章 如何利用限制条款在比特币上实现通用智能合约

... [BIP 0341](https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki#constructing-and-spending-taproot-outputs))。 我们将在下文提出一种潜在解决方案,用来在 UTXO 中表示合约的状态和有效转换规则。 ### 链上计算?! 计算应该在区块链上执行...

文章 零知识证明 - zkEVM源代码分析(EVM Circuit)

...束(减法也转化为加法) ``` let add_words = AddWordsGadget::construct(cb, [a.clone(), b.clone()], c.clone()); ``` 3/ 确定是加法还是减法操作,查看opcode是ADD还是SUB ``` let is_sub = PairSelectGadget::construct( cb, opcode.expr(), OpcodeId::SUB.expr(), ...

文章 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...

文章 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...