找到约 15 条结果

文章 08.slither中数据依赖检测示例

...的变化? - 假设erc20合约中存在一个自定义的function func_A (uint user_input) public,那么黑客通过修改user_input的值,最终能否影响到合约的balance状态变量。 # 2.相关概念的定义 ## **上下文的定义** 数据依赖涉及到上下文的概念...

文章 比特币 - 模拟 OP_RAND

> _作者:olkurbatov_ > > _来源: [https://delvingbitcoin.org/t/emulating-op-rand/1409](https://delvingbitcoin.org/t/emulating-op-rand/1409)_ 我们提出了一种方法,可通过交易对手方之间的一种免信任的交互式游戏,在比特币上模拟 OP\_RAND 操作码。游戏的...

文章 Solana Anchor 框架下的 Require 与自定义错误

...限制函数参数的有效范围。例如: ```solidity function foobar(uint256 x) public { require(x < 100, "I'm not happy with the number you picked"); // 后续逻辑 } ``` 在上述代码中,如果 x 的值大于等于 100,交易将触发回滚(revert),状态变更...

文章 garaga+noir+starknet starter项目实战

# 一、下载项目案例: [https://github.com/KevinSheeranxyj/scaffold-garaga](https://github.com/KevinSheeranxyj/scaffold-garaga#) # ![](https://uploader.shimo.im/f/b8B2bM0XEvXjcNIr.png!thumbnail?accessToken=eyJhbGciOiJIUzI1NiIsImtpZCI6ImRlZmF1bHQiLCJ0eXAiOiJKV1QifQ.eyJleHAiOjE3NTA1NTY5ND...

文章 深入Rust智能指针和模式匹配

...](#Deref解引用) - [Drop释放资源](#Drop释放资源) - [Rc与Arc实现1vN所有权机制](#Rc与Arc实现1vN所有权机制) - [Cell与RefCell内部可变性](#Cell与RefCell内部可变性) - [模式和匹配](#模式和匹配) --- ## 智能指针 ### Box 堆对象分配 ...

文章 Go语言代码测试,优化以及分析

...线程创建等。 **如何使用 pprof?** 启动服务端: ```bash go run your_program.go -http=:8080 ``` 上述命令会在8080端口开启一个HTTP服务,通过这个服务可以获取到各种profile数据。 **收集数据**: ```bash go tool pprof http://localhost:80...

文章 Lightning Loop:Musig2 如何助力闪电网络流动性分布

...-powering-lightning-liquidity-with-loop/#%E6%9B%B4%E4%BD%8E%E7%9A%84%E4%BB%A3%E4%BB%B7%EF%BC%8C%E5%AF%B9%E5%BC%80%E5%8F%91%E8%80%85%E6%9B%B4%E5%8F%8B%E5%A5%BD%E7%9A%84%E7%94%A8%E6%88%B7%E4%BD%93%E9%AA%8C "更低的代价,对开发者更友好的用户体验")更低的代价,对开发者更友好...

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

> In the rapidly evolving landscape of blockchain technology, smart contracts have emerged as a cornerstone of decentralized applications. The Open Network (TON) is a cutting-edge blockchain platform designed to offer scalability, security, and high performance for smart contract execution. For deve...

招聘 Blockchain Security Expert(Team 1)

**About the Role:** The primary responsibility of this role is for CertiK’s security-related services. Intersecting cybersecurity and blockchain, CertiK’s security offerings include security consulting, security reviews, security auditing of smart contracts and blockchains, verification of smar...

文章 Sui Testnet 简单发布a + b

# 一:Testnet $\mathit {Sui}$ 拥有主网、开发网和测试网网络,其中,测试网网络又可以分为 $\mathit {Devnet}$ 和 $\mathit {Testnet}$,当然,你也可以构建本地 $\mathit {Sui}$ 网络进行纯本地开发,但是本地的开发环境不是持久的,每一次...

文章 Chialisp - CHIP编号 | 0011

...6789) ) (q . 0x69bfe81b052bfc6bd7f3fb9167fec61793175b897c16a35827f947d5cc98e4bc) ) (q . 0) ; 如果 coin ID 匹配,则返回 0 (q x) ; 如果 coin ID 不匹配,则引发 ) (q . ())) ; 要应用的环境 (q . ())) ; 要 softfork 的环境 ``` ###...

招聘 【高薪远程全英】Senior Backend Engineer

Folks Finance is seeking a Senior Backend Engineer to join our team, focusing on building the backend services of our DeFi applications. This includes smart contract development, blockchain indexing, security monitoring and tracking metrics. The ideal candidate will have extensive experience wit...

文章 如果你不知道,查一下或者如何为零知识证明创建查找表

## 介绍 ZK-SNARKs(零知识简洁非交互知识论证)和 STARKs(可扩展透明知识论证)是功能强大的密码学结构,可应用于去中心化私有计算和区块链扩展。它们允许一方(证明者)向另一方(验证者)证明他正确地执行了计算,这种...

文章 以太坊是具有颠覆性技术,字面意义上

人们常常问,“[以太坊是用来做什么的?](https://blog.smartdec.net/you-do-not-need-blockchain-eight-popular-use-cases-and-why-they-do-not-work-f2ecc6cc2129)”。以前对于这个问题的回答常常包括“世界计算机”这个术语,[但是](https://uniswap.exchange/) [尽...

问题 IERC20 approve( address spender, uint256 amount) 授权问题

...转入合约账号的ERC20代币的数量。 二、途径 通过msg.value可以限制eth的转入数量,不可以限制ERC20代币。 听过可以调用transferFrom实现限制ERC20代币。 于是就是先授权,在转币,发现失败,通过测试发现 contract Gov账号创造合...