首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏luzhiyao

    Ethereum中Event

    概述 本篇文章将描述Ethereum的Event系统。在以太坊的合约代码中,经常会看到emit SomeEvent(...)的调用,对这里比较有困惑,查找了好些资料,整理出如下文档。 官网描述 在solidity的官方文档,对Event有如下描述: Event是以太坊EVM日志功能的顶层抽象; 应用程序可以通过Ethereum client的RPC接口来订阅、监听指定的Event。 在Ethereum的节点中,Event通过机制如下实现: solidity的合约通过编译为字节码,存储至Ethereum的区块链中;当一个交易中有合约调用时,先从区块链的数据库中加载当前Ethereum 查阅的资料 Where do contract event logs get stored in the Ethereum architecture?

    58710编辑于 2022-09-26
  • 来自专栏石头岛

    ethereum-编译geth

    /ethereum/go-ethereum/internal/ethapi github.com/ethereum/go-ethereum/eth/fetcher github.com/ethereum /go-ethereum/eth/protocols/snap github.com/ethereum/go-ethereum/eth/tracers github.com/ethereum/go-ethereum /ethereum/go-ethereum/miner github.com/ethereum/go-ethereum/eth/ethconfig github.com/ethereum/go-ethereum /eth github.com/ethereum/go-ethereum/les github.com/ethereum/go-ethereum/eth/catalyst github.com/ethereum /go-ethereum/les/catalyst github.com/ethereum/go-ethereum/ethstats github.com/ethereum/go-ethereum/cmd

    50340编辑于 2023-10-23
  • 来自专栏华仔的技术笔记

    Ethereum的理解

    以太坊(Ethereum)的目标是打造一个运行在智能合约的去中心化平台(Platform for smart contract),平台的应用按程序设定运行。 Ethereum环境搭建 brewMacOS包管理器 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew geth运行以太坊节点 下载Source code (tar.gz) localhost:go-ethereum-1.5.9 a212$ pwd /Users/a212/Desktop/ethereum /go-ethereum-1.5.9 localhost:go-ethereum-1.5.9 a212$ make geth Solidity以太坊智能合约语言 brew update brew upgrade brew tap ethereum/ethereum brew install solidity brew linkapps solidity 提示:安装时间可能有点长,请耐心等待

    1.1K50发布于 2018-05-17
  • 来自专栏超级架构师

    Ethereum - 以太坊项目

    其官网首页为 ethereum.org。 安装部署 如果你是首次接触 ethereum,推荐使用下面的步骤安装部署。 sudo apt-get install software-properties-common sudo add-apt-repository -y ppa:ethereum/ethereum ethereum 安装 solc 编译器 sudo add-apt-repository ppa:ethereum/ethereum-qt sudo add-apt-repository ppa:ethereum/ethereum sudo apt-get update sudo apt-get install cpp-ethereum 安装后可以使用 geth 命令创建

    1.9K71发布于 2018-04-09
  • 来自专栏Ethereum

    构建ethereum本地测试环境

    Docker 中运行 geth --dev在 Docker 环境下,也可以很方便地运行开发链:拉取镜像$ docker pull ethereum/client-go:latest启动容器$ docker run -d --name geth-dev \ -p 8545:8545 \ ethereum/client-go:latest \ --dev --http --http.api "eth, 持久化数据如果需要保留链数据,可以挂载本地目录:docker run -d --name geth-dev \ -p 8545:8545 \ -v $(pwd)/devdata:/root/.ethereum \ ethereum/client-go:latest \ --dev --http --http.api "eth,web3,personal,miner"这样,数据会保存到宿主机的 .

    50110编辑于 2025-08-20
  • 来自专栏一个会写诗的程序员的博客

    Ethereum Architecture : 以太坊架构

    (http://ethereum.stackexchange.com/questions/14/what-proof-of-work-function-does-ethereum-use) 代码:区块链的数据库方面只存储交易 Now, what exactly is in the Ethereum blockchain? (http://ethereum.stackexchange.com/questions/14/what-proof-of-work-function-does-ethereum-use) Code: The EVM is part of the Ethereum Protocol and plays a crucial role in the consensus engine of the Ethereum 参考资料 https://www.zastrin.com/courses/ethereum-primer/lessons/1-1

    1.1K20编辑于 2022-05-13
  • 来自专栏石头岛

    ethereum原理-RLP编码

    参考文档 https://ethereum.org/zh/developers/docs/data-structures-and-encoding/rlp

    68720编辑于 2023-10-23
  • 来自专栏石头岛

    ethereum原理-gas说明

    简单的说就是手续费的一种变体,本质还是转账费用,只能在设计上,功能更复杂,用处更多。 即然是手续费,为什么不干脆一次性收取或者设定一个转账比例,不是更简单? 这个后面说。

    54420编辑于 2023-10-23
  • 来自专栏Pseudoyu

    Ethereum 核心技术解读

    Gavin Wood 发布了一份黄皮书,涉及Ethereum Virtual Machin(EVM)以太坊虚拟的相关技术,这就是Ethereum的诞生。 Ether来衡量系统资源消耗,激励更多人参与Ethereum系统建设。 Gas Ethereum网络上的操作也需要“手续费”,称为Gas,在区块链上部署智能合约以及转账都需要消耗一定单位的Gas,这也是鼓励矿工参与Ethereum网络建设的激励机制,从而使整个网络更加安全、 Gas相关信息可以通过 Ethereum Gas Tracker 工具进行查询。 具体来看,Ethereum系统有共识层、数据层、应用层等核心组件,其交互逻辑如下: 如上图所示,Ethereum数据由Transaction Root和State Root组成。

    1.1K20编辑于 2023-04-11
  • 来自专栏石头岛

    ethereum-geth常用操作

    --datadir: 数据存放目录,不指定默认:/home/$user/.ethereum geth --datadir /data/geth --goerli console 2.连接eth测试网 -

    95120编辑于 2023-10-20
  • 来自专栏Reck Zhang

    Ethereum 02 - 外部账户

    外部账户(EOA)由私钥来控制, 是由用户实际控制的账户. 每个外部账户有用一对公钥私钥, 这对密钥用于签署交易, 它的地址是由公钥决定. 外部账户不能包含以太坊虚拟机(EVM)代码. 我们可以把外部账户看作是用户在银行办理的一个账户, 公钥就是用户为该账户设置的卡号, 而私钥就是用户设置的密码. 一个外部账户具有以下特性:

    79330发布于 2021-08-11
  • 来自专栏华仔的技术笔记

    Ethereum架构的分析

    除了DApp外,其他的所有部分都在以太坊的客户端里,目前最流行的以太坊客户端就是Geth(Go-Ethereum)。 blockchain.png 从数据结构来看 协议层,是最底层的技术。

    1.9K60发布于 2018-05-17
  • 来自专栏石头岛

    ethereum--Account账户模型

    // StateAccount is the Ethereum consensus representation of accounts. // These objects are stored in

    93910编辑于 2023-10-23
  • 来自专栏FunTester

    Ethereum WebSocket接口实践

    之前在学习Ethereum的infura API时候看到有WebSocket,但是翻了很久都没找到很完整的接口文档和实践文档。 ,\"method\":\"net_version\",\"params\":[],\"id\":1333333}") } 控制台输出: 22:03:41.023 main infura ethereum 03:42.448 WebSocketConnectReadThread-20 握手信息key: Upgrade ,value: websocket 22:03:44.028 main infura ethereum 22:03:44.299 WebSocketConnectReadThread-20 infura ethereum收到: {"jsonrpc":"2.0","id":1,"result":[]} 22 :03:44.544 WebSocketConnectReadThread-20 infura ethereum收到: {"jsonrpc":"2.0","id":1333333,"result":"5

    46420编辑于 2023-11-17
  • 来自专栏luzhiyao

    Binance 的跨链`Ethereum`智能合约

    概述 上一篇描述了Binance与Ethereum的跨链原子交换技术规范;本节将描述Binance在Ethereum中的跨链院子交换合约。 Ethereum合约源码: https://github.com/binance-chain/bep3-smartcontracts/tree/master/ethereum/contracts 合约讲解 Binance的跨链原子交换分为两种:ETH跨链原子交换合约、基于Ethereum合约的ERC20跨链原子交换合约。 两份合约实现上几乎一致,唯一的区别在于:ETH作为Ethereum的原生token与基于ERC20的合约token,转账有些不同。 合约代码 以ETH跨链原子交换合约为例.

    58720编辑于 2022-09-26
  • 来自专栏石头岛

    ethereum原理--关于keccak256

    参考文档 全新的 SHA-3 加密标准 —— Keccak ethereum/crypto_test.go

    95310编辑于 2023-10-23
  • 来自专栏超级架构师

    区块链101:Ethereum是什么?

    在你能理解ethereum之前,先了解互联网是很有帮助的。 Ethereum是加入这一运动的最新技术之一。 有了ethereum,服务器和云被来自世界各地的志愿者运行的数千个所谓的“节点”所取代(从而形成了一个“世界计算机”)。 其远景是,ethereum将为世界各地的人们提供相同的功能,使他们能够在基础设施的基础上竞争提供服务。 如果一切按照计划进行,Ethereum将会将这些类型的服务的数据的控制权返还给它的所有者和作者的创作权利。

    2.1K130发布于 2018-04-10
  • 来自专栏陈冠男的游戏人生

    智能合约:介绍、geth、Ethereum Wallet

    ethfans.org/posts/wtf-is-the-blockchain 了解一下以太坊以及智能合约等: https://ethfans.org/posts/gentle-introduction-ethereum-new-version-with-more-note datadir 指定的目录里面添加 static-nodes.json 文件,让各个节点取得联系,具体如下: { "enode://xxxxxxxx" //boot node 的地址} 抄书了 Ethereum Wallet Ethereum Wallet 软件去这里下载: https://github.com/ethereum/mist/releases 我新版打不开,老的版本可以,曲奇云盘: https

    2.1K31发布于 2020-05-04
  • 来自专栏liuchengxu

    Ethereum Casper 101 词汇表

    Checkpoint -- 在 FFG 中,它是按照规律(比如每 50 个块)隔开的一个块,这个块在底层是 PoW 的链之上,同时采用 PoS 验证机制(比如 Ethereum with ethash) (来自 Triangle of Harm) 原文:https://medium.com/@jonchoi/ethereum-casper-101-7a851a4f1eb0

    60220发布于 2018-08-23
  • 来自专栏code人生

    ethereum权威共识机制(PoA)简述

    以太坊是一个强大的区块链平台,支持智能合约和去中心化应用(dApps)的开发。为了确保网络的安全性和交易的有效性,以太坊采用了多种共识机制。其中,权威证明(Proof of Authority, PoA)是一种相对较新的共识模型,主要用于提升网络的效率。本文将深入探讨PoA的工作原理、优缺点及其应用场景。

    1.1K10编辑于 2024-09-26
领券