找到约 12 条结果

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

文章 针对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[...

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

文章 区块链中的数学-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...

文章 Web3 极客日报 #1559

...l-framework/ **Harry**: 可以用它来实现一个叫做 Strobe Duplex Construction 的 primitive。实现的 Strobe 对象应能响应十几种调用,将这些调用组合在一起,就能生成随机数、派生密钥、散列、加密、验证,甚至构建复杂的对称协议。

文章 Libra 白皮书中英文对照版

...lability of the protocol and implementation. * The Libra Association will construct well-documented APIs and libraries to enable users to interact with the Libra Blockchain. * The Libra Association will create a framework for the collaborative development of the technology behind the Libra Blockcha...

文章 Go 语言之在 Gin 框架中使用 Zap 实现高效日志管理

...re := zapcore.NewCore(encoder, writeSyncer, zapcore.DebugLevel) // New constructs a new Logger from the provided zapcore.Core and Options. If // the passed zapcore.Core is nil, it falls back to using a no-op // implementation. // AddCaller configures the Logger to annotate each message w...

文章 Substrate代码导读:node-template

...类型; * 为runtime的实现各个功能模块的接口,runtime由`construct_runtime`宏生成, ``` impl template::Trait for Runtime { type Event = Event; } ``` * `construct_runtime`宏根据名称(如`TemplateModule`)和所用的模块内的组件(如`templa...

文章 零知识证明 - 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(), ...

问题 solidity的struct中包含了mapping,在使用中报内存初始化错误

...: ``` 错误提示:struct contraining a (nested) mapping cannot be constructed ``` 请教该怎么处理? 找了一下文档:https://docs.soliditylang.org/en/v0.7.1/070-breaking-changes.html#mappings-outside-storage 文档的意思是0.7版本后优化了这些不安全的写法...

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

文章 sui-move基础(三):letsmove-task2

...mation about the transaction currently being executed. /// This cannot be constructed by a transaction--it is a privileged object created by /// the VM and passed in to the entrypoint of the transaction as `&mut TxContext`. public struct TxContext has drop { /// The address of the user that ...