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

    区块链开发(六)truffle使用入门和testrpc安装

    安装命令: sudo npm install -g ethereumjs-testrpc 这里的安装如果无法下载,请参考上一篇博客中安装truffle中使用淘宝镜像的方法。 在执行以上命令之后,只是把ethereumjs-testrpc安装在nodejs的以下路径: /home/zhuzs/app/nodejs/node-v6.9.1/lib/node_modules/ethereumjs-testrpc 还行进行软连接的配置: ln -s /home/zhuzs/app/nodejs/node-v6.9.1/lib/node_modules/ethereumjs-testrpc/bin/testrpc /home/zhuzs/app/nodejs/node-v6.9.1/lib/node_modules/ethereumjs-testrpc/node_modules/solc/soljson.js:1 <anonymous> (/home/zhuzs/app/nodejs/node-v6.9.1/lib/node_modules/ethereumjs-testrpc/node_modules/scrypt

    78630编辑于 2022-05-06
  • 来自专栏code人生

    创建以太坊钱包

    panda during find cart hedgehog spend pony recall plunge scatter sentence tape 2 根据助记词生成密钥对 这一步我们需要用到ethereumjs-wallet : $ npm i ethereumjs-wallet import { hdkey } from 'ethereumjs-wallet'; let seed = bip39.mnemonicToSeed eth.accounts.decrypt(keystore,'111111'); console.log(privateKeyString1) // wallet import ethwalletfrom 'ethereumjs-wallet

    86510编辑于 2024-05-09
  • 来自专栏丑胖侠

    区块链开发(八)以太坊不同语言客户端地址

    https://github.com/ethereum/cpp-ethereum pyethapp 语言:python 地址:https://github.com/heikoheiko/pyethapp ethereumjs-lib 语言:javascript 地址:https://github.com/ethereumjs/ethereumjs-lib Ethereum(J) 语言:Java 地址:https://github.com

    69240编辑于 2022-05-06
  • 来自专栏企鹅号快讯

    区块链技术(一):Truffle开发入门

    需要安装Ethereum客户端,来支持JSON RPC API调用 开发环境,推荐使用EthereumJS TestRPC: https://github.com/ethereumjs/testrpc 安装命令: $ npm install -g ethereumjs-testrpc 新建第一个项目 $ mkdir zhaoxi $ cd zhaoxi $ truffle init 默认会生成一个MetaCoin

    1.5K90发布于 2018-01-16
  • 来自专栏极客编程

    如何实现以太坊支付

    下面的代码是用JavaScript编写的,并且使用ethereumjs-abi: function constructPaymentMessage(contractAddress, amount) { return ethereumjs.ABI.soliditySHA3( ["address", "uint256"], [contractAddress, amount], ); 最后一步可以通过多种方式执行,但是如果它在JavaScript中完成,我推荐ethereumjs-util库。 (signature); var publicKey = ethereumjs.Util.ecrecover(message, split.v, split.r, split.s); var signer = ethereumjs.Util.pubToAddress(publicKey).toString("hex"); return signer; } function isValidSignature

    2K20发布于 2018-09-04
  • 来自专栏cwl_Java

    快速学习-以太坊客户端

    https://github.com/ethereum/cpp-ethereum pyethapp (python) 地址:https://github.com/heikoheiko/pyethapp ethereumjs-lib ( javascript ) 地址:https://github.com/ethereumjs/ethereumjs-lib EthereumJ / Harmony ( Java ) 地址:https

    68420发布于 2020-04-10
  • 来自专栏深入浅出区块链技术

    每周以太坊进展2022/6/25

    所有者的多代奖励机制 开发者资料 测试网关闭时间表[20]: Kiln 在主网合并后, Ropsten 第四季度, Rinkeby 2023 年第二到第三季度 Sepolia 测试网水龙头[21] EthereumJS 2022/06/21/testnet-deprecation/ [21] 水龙头: https://sepoliafaucet.net/ [22] v5.9.3: https://github.com/ethereumjs /ethereumjs-monorepo/releases/tag/%40ethereumjs%2Fvm%405.9.3 [23] Foundry x Huff: https://github.com

    42640编辑于 2022-11-07
  • 来自专栏深入浅出区块链技术

    如何使用以太坊的 CREATE2 操作码

    keccak256(0xff ++ deployingAddr ++ salt ++ keccak256(bytecode))[12:] 下面是我用的脚本,我用了ethereumjs-util包来执行 const eth = require('ethereumjs-util') // 0xff ++ deployingAddress is fixed: var string1 = '0xffca4dfd86a86c48c5d9c228bedbeb7f218a29c94b 0xa905a3922a4ebfbc7d257cecdb1df04a3badc0de 引用: EIP1014 — Skinny CREATE2[8] Capture the Ether — Fuzzy Identity[9] Truffle[10] ethereumjs-util ref=hackernoon.com [7] Github: https://github.com/ethereumjs/ethereumjs-util? ref=hackernoon.com [11] ethereumjs-util: https://github.com/ethereumjs/ethereumjs-util?

    1.1K20编辑于 2022-11-07
  • 来自专栏深入浅出区块链技术

    每周以太坊进展2022/3/26

    ethereumjs/client v0.4.0[2]: 支持 Kiln v2 POS(共识层) Danny Ryan 记录的 PoS 最终更新[3]: 合并测试正在进行,欢迎加入! 应该知道的[12] Goerli 影分叉[13] 合并成功 Raspberry Pi Kiln 测试网图像[14]更新: 添加 Erigon 执行客户端; 16 个执行层和共识层组合 Kiln 测试网的 ethereumjs 开发者资料 ethereumjs/vm v5.8.0[25]: 支持 Kiln v2 , EIP3540 EVM 对象格式化, EIP3670 EOF – 代码验证, EIP3860 限制并计量初始化代码以及改进 /ethereumjs-monorepo/releases/tag/%40ethereumjs%2Fclient%400.4.0 [3] PoS 最终更新: https://blog.ethereum.org /ethereumjs-monorepo/releases/tag/%40ethereumjs%2Fvm%405.8.0 [26] v8: https://github.com/dethcrypto/TypeChain

    66830编辑于 2022-04-11
  • 来自专栏深入浅出区块链技术

    每周以太坊进展2022/4/16

    Ropsten 和 Rinkeby 将被弃用 具有潜在攻击场景的最新 ValidHash 分析[5] 讨论 EOF, SELFDESTRUCT 和 Verkle 直到合并后不接受更多上海升级的 EIP ethereumjs 的 optimistic rollup 开发者资料 Underhanded Solidity 比赛获胜者[30] Remix v0.23.0[31]: 改进缓存,通过 natspec 编译后运行脚本 ethereumjs view [6] v0.4.1: https://github.com/ethereumjs/ethereumjs-monorepo/releases/tag/%40ethereumjs/client% v0.23.0: https://twitter.com/EthereumRemix/status/1514595790479454218 [32] v5.9.0: https://github.com/ethereumjs /ethereumjs-monorepo/releases/tag/%40ethereumjs%2Fvm%405.9.0 [33] Foundry 主要仓库: https://twitter.com/gakonst

    59310编辑于 2022-05-25
  • 来自专栏区块链入门

    【深度知识】10分钟教会你深挖以太坊数据层

    1、安装npm、Node、Level 和 EthereumJS 使用 Node.js,Level 和 EthereumJS(使用 JavaScript 语言编写的以太坊虚拟机)三个程序来进行 levelDB /ethereumjs-vm.git 18 19cd ethereumjs-vm 20 21npm install ethereumjs-account ethereumjs-util –save 实验环境配置完毕后 以下示例使用了 EthereumJS,当提供特定区块的 stateRoot 以及以太坊帐户地址时,运行下面代码返回该帐户的余额。 /ethereumjs-vm/blob/master/LICENSE 4 5//Requires the following packages to run as nodejs file https '); 17 18var BN = utils.BN; 19 20var Account = require('ethereumjs-account'); 21 22 23//Connecting to

    1.4K20发布于 2018-08-22
  • 来自专栏汇智网教程

    收藏贴 :2019年必备43种区块链开发工具 原

    官网:https://github.com/analyseether/ether_sql 14、EthereumJS VM EthereumJS VM是以太坊虚拟机的JavaScript实现,可以用来创建 官网:https://github.com/ethereumjs/ethereumjs-vm 15、Nethereum Nethereum是一个开源的用于集成区块链支持的.Net开发库,它简化了在.Net 官网:http://www.liquidity-lang.org 29、Ganache CLI Ganache是Truffle开发套件中的一部分,它使用EthereumJS来模拟节点行为,以便加速并简化

    2K50发布于 2019-05-14
  • 来自专栏深入浅出区块链技术

    以太坊开发工具及资源大全

    Web3Wrapper[73] -Typescript Web3 API Ethereumjs[74] - 以太坊的实用工具函数集合,例如:ethereumjs-util[75]和ethereumjs-tx [156] - 使用 ethereumjs-vm[157] 的 JS 客户端 Seth[158] - Seth 是一个以太坊客户端工具,就像“命令行的 MetaMask”一样 Mustekala[159 : https://github.com/ethereumjs/ [75] ethereumjs-util: https://github.com/ethereumjs/ethereumjs-util [76] ethereumjs-tx: https://github.com/ethereumjs/ethereumjs-tx [77] flex-contact: https://github.com : https://github.com/ethereumjs/ethereumjs-client [157] ethereumjs-vm: https://github.com/ethereumjs/

    3.4K10发布于 2021-01-28
  • 来自专栏区块链与Web3.0

    Solidity开发智能合约

    typesconst web3 = new Web3('ws://localhost:8546');使用举例:web3.eth.getAccounts().then(console.log);1.2 Ethereumjs 以太坊的实用程序功能集合,如ethereumjs-util和ethereumjs-tx,github:安装:npm install ethereumjs-util使用方法:import assert from Buffer.from('6600', 'hex')) assert.equal(new BN('dead', 16).add(new BN('101010', 2)), 57047)Ethereumjs-APIAccount 使用方法:import Wallet from 'ethereumjs-wallet'Thirdparty API: import { thirdparty } from 'ethereumjs-wallet'HD Wallet API: import { hdkey } from 'ethereumjs-wallet'其他常用接口light.js - 为轻客户端优化的高级反式JS库flex-contract 和

    64710编辑于 2024-07-28
  • 来自专栏极客编程

    PHP如何通过编程在服务端验证以太坊签名

    有一些很棒的开源项目,比如ethereumjs-util,它提供了一个用以太坊帐户签名的即插即用功能。 JavaScript的一个缺点是,在许多领域,它带来了安全问题。 利用开源项目(如ethereumjs-util)来签署任意的数据消息是相当容易的。然而,不容易的是告诉服务器有人已经成功地验证了某帐号的所有权。 当然这也不是绝对正确的,你也可以很容易做到这一点。 在ethereumjs-util和solidity中,ecrecover方法是前提,除非这些工作分别在客户端和区块链中。 注意:Solidity的ecrecover返回一个地址,而ethereumjs-utils的ecrecover返回一个公钥。 注:研究期间,我发现了一些有趣的StackExchange的问题主题。 我的行动逻辑是使用ethereumjs-util,使用已知的以太坊私钥签署交易。

    2.5K20发布于 2018-09-04
  • 来自专栏区块链大本营

    0.166666667小时,教会你深挖以太坊数据层

    1、安装npm、Node、Level 和 EthereumJS 使用 Node.js,Level 和 EthereumJS(使用 JavaScript 语言编写的以太坊虚拟机)三个程序来进行 levelDB /ethereumjs-vm.git 18 19cd ethereumjs-vm 20 21npm install ethereumjs-account ethereumjs-util –save 实验环境配置完毕后 以下示例使用了 EthereumJS,当提供特定区块的 stateRoot 以及以太坊帐户地址时,运行下面代码返回该帐户的余额。 /ethereumjs-vm/blob/master/LICENSE 4 5//Requires the following packages to run as nodejs file https '); 17 18var BN = utils.BN; 19 20var Account = require('ethereumjs-account'); 21 22 23//Connecting to

    92450发布于 2018-09-21
  • 来自专栏华仔的技术笔记

    Ubuntu系统搭建以太坊框架总结

    4,安装testrpc(testrpc是在本地使用内存模拟的一个以太坊环境) root@VM-0-7-ubuntu:/home/nodejs/node-v7.7.2# npm install -g ethereumjs-testrpc + ethereumjs-testrpc@6.0.3 added 337 packages from 279 contributors in 77.808s root@VM-0-7-ubuntu:/ home# testrpc EthereumJS TestRPC v6.0.3 (ganache-core: 2.0.2) Available Accounts ==================

    1K40发布于 2018-06-06
  • 来自专栏深入浅出区块链技术

    每周以太坊进展2022/7/23

    API 正在记录防止活性失败的 MEV-boost 保护措施, 建议仅在合并完成后使用 MEV-boost 更新 EIP4444(绑定历史数据),下一步在合并后在 Goerli 测试网上测试导出/导入 EthereumJS 1550221047122628608 [7] Christine Kim: https://twitter.com/i/notes/1550142474873610241 [8] v0.6: https://github.com/ethereumjs /ethereumjs-monorepo/tree/master/packages/client/merge [9] v22.7.0-RC-2: https://github.com/hyperledger

    54750编辑于 2022-11-07
  • 来自专栏深入浅出区块链技术

    每周以太坊进展 2022/12/17

    v3.2.0[16]:添加 randao json 端点和 liveness 端点,修复 bug 执行层: Besu v22.10.3[17]:实现 Eth/68,加速 modexp,不再支持 Graalvm EthereumJS v22.10.3: https://github.com/hyperledger/besu/releases/tag/22.10.3 [18] v0.6.6: https://github.com/ethereumjs /ethereumjs-monorepo/releases/tag/%40ethereumjs/client%400.6.6 [19] v2.32.0: https://github.com/ledgerwatch

    57410编辑于 2023-01-09
  • 来自专栏深入浅出区块链技术

    每周以太坊进展2022/4/9

    不完美但更简单的保证 POW 关闭(合并) clientdiversity.org[13]: 有共识和执行客户端占比的图表; 提醒:仍然需要执行客户端的多样性 目前 Prysm 为 56%,Geth 为 87% EthereumJS immutable), 铭记的(enshrined)和自主的(sovereign) 开发者资料 Foundry 分叉模式测试[21] - 从 Etherscan 的 API 获取合约源/ABI 解码跟踪 EthereumJS view [13] clientdiversity.org: https://clientdiversity.org/ [14] EthereumJS 客户端: https://twitter.com/

    50130编辑于 2022-05-25
领券