找到约 13 条结果

文章 sui move实现股票分红的一种实现

...有的钱,提取到这个对象的owner的钱包。 如下图, ![image.png](https://img.learnblockchain.cn/attachments/2024/12/BSRwmCqz674eebb0b9a18.png) 1 2 : 用户A 发布合约,拥有分红权限 3 4 :用户B 花钱购买了股票 ,合约里面增加了钱 5 : 将股票自由转...

文章 手把手部署以太坊可升级智能合约

...在的产品改进仍然需要一定程度的可变性。OpenZeppelin Upgrades 通过为智能合约提供易于使用、简单、健壮和可选的升级机制来解决这一明显的矛盾,该机制可以由任何类型的治理控制,无论是多重签名钱包、简单地址还是复杂的 D...

问题 报错 Uncaught (in promise) TypeError: web3.Contract is not a constructor 求帮忙 感谢

``` async function mint() { var address = await window.ethereum.request({ method: 'eth_requestAccounts' }); var myAddress = address[0]; var _to = '0x85C9563bb6883439FAEa26D4519CFc4da62f7199'; var amount = 100; var myContract = new web...

文章 实现一套 DID 之总体设计 | Move dApp 极速入门(五)

前文链接: [合约数据类型综述 | Move dApp 极速入门(四)](https://learnblockchain.cn/article/6417) [操作资源 | Move dApp极速入门(三)](https://learnblockchain.cn/article/4744) [第一个 Move dApp | Move dApp极速入门(二)](https://learnblockchain.c...

文章 Solidity 大神之路之内功修炼第五章

...高效、安全的代码奠定基础。 ![solidty-2.png](https://img.learnblockchain.cn/attachments/2025/07/47D6EK5s6863b2d381fb0.png) ## 1. 函数签名 (Function Signature) 函数签名是 Solidity 中用于标识函数的独特字符串,由函数名及其参数类型组成。它在智...

文章 bond curve

Certainly! I'll rewrite the explanation of the approximation used in the _ethToTokens function in markdown format: # Bonding Curve Approximation in Doju Contract The _ethToTokens function uses an approximation to calculate the number of tokens to mint for a given ETH amount. Let's break down t...

文章 Solidity库 | 双向链表

... ## 实现 ```solidity // SPDX-License-Identifier: LGPL-3.0-only pragma solidity 0.8.11; /** * @title Maintains a doubly linked list keyed by bytes32. * @dev Following the `next` pointers will lead you to the head, rather than the tail. */ library LinkedList { // 链表节点 ...

视频 影子Reth:影子日志的执行扩展 - @emhsia - 前沿

Emily, co-founder and CTO of Shadow, introduced ShadowRef, a tool that enables the addition of gasless logs, known as Shadow Logs, to existing smart contracts without increasing gas costs for users. Shadow Logs are generated in an off-chain execution environment, allowing developers to access deeper...

文章 myvetools: 帮助开发者高效开发TS代码,快速实现智能合约测试

...和区块链节点交互的接口。 * *Connex:https://github.com/vechain/connex* ### 工具安装 --- npm install myvetools 选择 Solidity 编译器版本 --- 通过以下命令可以下载指定版本的 solidity 编译器,比如 0.7.0 版本: ``` ./node_modules/.b...

文章 Nick 的方法 - 以太坊无密钥执行/部署方法

>- 原文链接:[medium.com/patronum-lab...](https://medium.com/patronum-labs/nicks-method-ethereum-keyless-execution-168a6659479c) >- 译者:[AI翻译官](https://learnblockchain.cn/people/19584),校对:[翻译小组](https://learnblockchain.cn/people/412) >- 本文链接:[learnblockcha...

文章 零知识证明 - Coda SNARK挑战(Stage2)

SNARK挑战的第二阶段(Stage2)挑战的主要内容是:Groth16算法的证明生成和验证性能的优化。第二阶段的挑战又分成两部分内容:Groth16算法的证明生成(65000美金)以及Groth16算法的验证(10000美金)。 SNARK挑战使用的零知识证明...

文章 golang 实现区块链(Bitcoin)系列1 - 基本原型

本系列文章: [golang 实现区块链(Bitcoin)系列 1 - 基本原型](https://learnblockchain.cn/article/577) [golang 实现区块链(Bitcoin)系列 2 - 工作量证明](https://learnblockchain.cn/article/580) [golang 实现区块链(Bitcoin)系列 3 - 持久化和命令行接口](htt...

文章 惠普发布量子安全打印机

![](https://img.learnblockchain.cn/2025/04/24/1GsKpkG-aCNJ4LG75l5T9Jg.png) ## 惠普发布量子安全的打印机 所以,准备好迎接支持“量子安全”标签的设备,将其作为一种营销工具吧。最近,三星发布了带有后量子密码芯片的新款 S25 智能手机,...