找到约 10 条结果

文章 探索 Solana 与 合约核心概念

... /// Account indexes must index into the list of addresses /// constructed from the concatenation of three key lists: /// 1) message `account_keys` /// 2) ordered list of keys loaded from `writable` lookup table indexes /// 3) ordered list of keys loaded ...

文章 2024-07-21 zk-insights Weekly

...iciency of DPPs. - ### Designated-Verifier zk-SNARKs Made Easy Propose a construction of strong designated-verifier zk-SNARKs. The construction inspired by designated verifier signatures based on two-party ring signatures does not use encryption and can be applied on any public-verifiable zk-SNARK...

文章 基于格的哈希函数

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

文章 区块链中的数学-secp256k1公钥恢复实现

...f (recId == -1) { throw new RuntimeException( "Could not construct a recoverable key. This should never happen."); } ** sig.v = (byte) (recId + ECDSASignature.vBase);** return sig; } ``` 恢复过程根据[公钥恢复原理](https://learnblockchain.cn/arti...

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

文章 通过 Libra 学习 Protobuf

...接口专门用于实现两者之间的转换. 比如: ``` /// Helper to construct and parse [`proto::storage::GetAccountStateWithProofByStateRootRequest`] /// /// It does so by implementing `IntoProto` and `FromProto`, /// providing `into_proto` and `from_proto`. #[derive(PartialEq, Eq, Clone, Fr...

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

...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) { ...

文章 In-depth Analysis of the TON FunC Console Tool Code: Efficient Data Printing and Formatting

... maintain the correct number of decimal places. * The formatted string is constructed by concatenating the integer part, a decimal point, the zeros, and the fractional part, ensuring a consistent and readable format. Example Usage: ```css console::log(console::pretty_coins(1000000001)); // Out...

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

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

文章 move基本数据类型(二)

...an instance of the `IgnoreMe` struct and ignore it. // Even though we constructed the instance, we don't need to unpack it. fun test_vec() { //声明一个具有三个元素的向量 let mut v = vector[10, 20, 30]; //通过push_back方法,添加值为5的元素...