找到约 12 条结果

文章 比特币开发系列 - #1 序列化

...ng/blob/master/ex-fixed-strings.c) 中: ``` uint32_t n32 = 0x68f7a38b; char str[] = "FooBar"; size_t str_len = 10; uint16_t n16 = 0xee12; ``` 我们将“n32 + str + n16”序列化为(4 + 10 + 2) = 16 字节。可以安全地假设 ASCII 字符串免费编码为原始...

文章 深入理解EVM系统(1)

...[7.png](https://img.learnblockchain.cn/attachments/2022/03/N3fv7eK96243ae79a3f11.png!/scale/60) `PUSH4` 将`retrieve() (0x2e64cec1) `的4 字节函数签名推入调用栈。 如果你想知道它是如何知道这个值的,请记住这是在从solidity 代码编译的字节码中。因此...

文章 ZKsync加密预编译审计

... #77](https://github.com/matter-labs/zksync-crypto/pull/77),提交 [ccf5fa3](https://github.com/matter-labs/zksync-crypto/commit/ccf5fa30ee2c94b594126d7b4b75770cafbbab21)。 审计范围包括以下文件: ```  crates └── boojum └── src └── gadgets ...

文章 使用Solidity和IPFS存储DApp

...[upload_test_example.js](https://gist.github.com/MCarlomagno/434564499b2a7ea3a4640d3005544155#file-upload_test_example-js) ```js it("uploads a valid file", async () => { // checks filecount variable // before uploading the file const countBeforeUpload = await this.contract.fileCo...

文章 都2023年了,为什么还有因为这种漏洞而损失50w美金的代码?

...D44CAE8F9b809396E0931F9Df71CA); IERC20 constant ecio = IERC20(0x327A3e880bF2674Ee40b6f872be2050Ed406b021); IERC20 constant busd = IERC20(0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56); IUniswapV2Router constant pancakeRouter = IUniswapV2Router(payable(0x10ED43C718714eb63d5aA57B7...

文章 客户端验证EIP

...000961ef480eb55e80d19ad83579a64c007002" } }, "nextHash": "1c6a3b9f" } } ``` ## 参考实现 [Besu 中的示例实现](https://github.com/hyperledger/besu/pull/8417) ## 安全考虑事项 - **暴露风险**:不正确的配置可能会泄露操作细节。运营商**应该**将 ...

文章 如何获取以太坊上的代币、交易、元数据、NFT 和价格

...Balance({ "chain": "0x1", "address": "0xDC24316b9AE028F1497c275EB9192a3Ea0f67022" }); ``` * `getWalletTokenBalances() `– 获取任意钱包的 ERC-20 代币余额: ```js const response = await Moralis.EvmApi.token.getWalletTokenBalances({ "chain": "0x1", "address": "0x1f9...

文章 设计与产品

...tps://developerdao.notion.site/Hacer-lista-de-amigos-p-launch-7bb7b1396e3a4a3fa3f58590b27cb366?pvs=25) [Web3Con Part 2](https://developerdao.notion.site/Web3Con-Part-2-de37e56a94d54337bcae1cc65785e501?pvs=25) [![📄]()\\ \\ 项目模板](https://developerdao.notion.site/Project-Template-a565d85d4...

文章 [译]使用Eventeum监听以太坊合约事件

...-cache' \ -H 'Content-Type: application/json' \ -H 'Postman-Token: 616712a3-bf11-bbf5-b4ac-b82835779d51' \ -d '{ "id": "Country", "contractAddress": "ENTER_YOUR_CONTRACT_ADDRESS_CHECK_IN_REMIX", "eventSpecification": { "eventName": "CountryEvent", "nonIndexedParameterDefinitions": [ ...

文章 如何在Solana去中心化应用程序中连接你的MetaMask钱包

...![授权](https://img.learnblockchain.cn/2025/03/03/authorize-d7676348d4690a3f6d5dede68b8f823b.png) 注意安全 一如既往,保持良好的安全习惯,仅授权来自可信来源的 Snaps。MetaMask 和 Solflare 提供了 Solana Snap 的审计,你可以在 [这里](https://consensys.io/di...

文章 【使用go开发区块链】之智能合约交互(01)

...n方法 ![image.png](https://img.learnblockchain.cn/attachments/2023/07/A3txcn0H64c33a9f1f121.png) 我这里使用的以太坊的 goerli测试链 进行测试的,看上面我们的代码已经成功执行了,让我们去区块链浏览器了看一下   ![image.png](https://img.learnbl...

文章 ENS源码分析

... (bytes32) { // 求address的hex编码 bytes32 label = sha3HexAddress(addr); // 计算namehash bytes32 node = keccak256(abi.encodePacked(ADDR_REVERSE_NODE, label)); // 获取当前address有没有设定反向解析器,如果已设置,就判断是否...