基于区块链的毕业设计ethereum – 以太坊

本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计ethereum – 以太坊 是一篇很好的国外资料

ethereum

Ethereum is a decentralized platform for building applications using blockchain.

TL;DR;

$ helm install stable/ethereum

Introduction

This chart deploys a private Ethereum network onto a Kubernetes cluster using the Helm package manager. This network is not connected to MainNet, and for further information on running a private network, refer to Geth’s documentation. This chart is comprised of 4 components:

  1. bootnode: used for Geth node discovery
  2. ethstats: Ethereum Network Stats
  3. geth-miner: Geth miner nodes
  4. geth-tx: Geth transaction nodes with mining disabled whose responsbility is to respond to API (websocket, rpc) queries

Prerequisites

  • Kubernetes 1.8

Installing the Chart

  1. Create an Ethereum address and private key. To create a new Ethereum wallet, refer to this blog post which will walkthrough the following instructions in greater detail:

    $ git clone https://github.com/vkobel/ethereum-generate-wallet $ cd ethereum-generate-wallet $ pip3 install -r requirements.txt $ python3 ethereum-wallet-generator.py  Private key: 38000e15ca07309cc2d0b30faaaadb293c45ea222a117e9e9c6a2a9872bb3bcf Public key:  60758d37d431d34b920847212febbd583008ec2a34d00f907d48bd48b88dc2661806eb99cb6178312d228b2fd08cdb88bafc352d0395ae09b2fe453f0c4403ad Address:     0xab70383d9207c6cc43ab85eeef9db4d33a8ad4e8
  2. Install the chart as follows:

    $ helm install --name my-release stable/ethereum     --set geth.account.address=[PUBLIC_ADDRESS]     --set geth.account.privateKey=[PRIVATE_KEY]     --set geth.account.secret=[SECRET]

    using the above generated example, the configurations would equate to:

    • geth.account.address = 0xab70383d9207c6cc43ab85eeef9db4d33a8ad4e8
    • geth.account.privateKey = 38000e15ca07309cc2d0b30faaaadb293c45ea222a117e9e9c6a2a9872bb3bcf
    • geth.account.secret = any passphrase that Geth will use to encrypt your private key

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters of the vault chart and their default values.

Parameter Description Default
imagePullPolicy Container pull policy IfNotPresent
nodeSelector Node labels for pod assignmen
bootnode.image.repository bootnode container image to use ethereum/client-go
bootnode.image.tag bootnode container image tag to deploy alltools-v1.7.3
ethstats.image.repository ethstats container image to use ethereumex/eth-stats-dashboard
ethstats.image.tag ethstats container image tag to deploy latest
ethstats.webSocketSecret ethstats secret for posting data my-secret-for-connecting-to-ethstats
ethstats.service.type k8s service type for ethstats LoadBalancer
geth.image.repository geth container image to use ethereum/client-go
geth.image.tag geth container image tag to deploy v1.7.3
geth.tx.replicaCount geth transaction nodes replica count 2
geth.tx.service.type k8s service type for geth transaction nodes ClusterIP
geth.tx.args.rpcapi APIs offered over the HTTP-RPC interface eth,net,web3
geth.miner.replicaCount geth miner nodes replica count 3
geth.miner.account.secret geth account secret my-secret-account-password
geth.genesis.networkId Ethereum network id 98052
geth.genesis.difficulty Ethereum network difficulty 0x0400
geth.genesis.gasLimit Ethereum network gas limit 0x8000000
geth.account.address Geth Account to be initially funded and deposited with mined Ether
geth.account.privateKey Geth Private Key
geth.account.secret Geth Account Secret

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example, to configure the networkid:

$ helm install stable/ethereum --name ethereum --set geth.genesis.networkid=98052

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

$ helm install stable/ethereum -f values.yaml

以太坊eth

以太坊eth是一个使用区块链blockchain构建应用程序的去中心化平台。

TL;DR;

$ helm install stable/ethereum

简介

此图表使用Helm包管理器将专用以太坊eth网络部署到Kubernetes群集上。此网络未连接到MainNet,有关运行专用网络的更多信息,请参阅Geth的文档。此图表由4个组件组成:

  1. 引导节点:用于Geth节点发现
  2. ethstats:以太坊eth网络统计
  3. Geth miner:Geth miner节点
  4. Geth tx:禁用挖掘的Geth事务节点其职责是响应API(websocket,rpc)查询,创建以太坊eth地址和私钥。要创建新的以太坊eth钱包,请参阅这篇博文,其中将详细介绍以下说明:$git clonehttps://github.com/vkobel/ethereum-generate-wallet$cd以太坊eth生成钱包$pip3安装-r要求.txt$python3以太坊eth钱包-发电机.py私钥:38000e15ca07309cc2d0b30faaaadb293c45ea222a117e9e9c6a2a9872bb3bcf Public密钥:60758D37D431D34B920847212FEBBD583008EC2A34D00F907D48BD488DC2661806EB99CB6178312D228B2FD08CDB88BAFC352D0395AE09B2FE453F0C4403AD地址:0xab70383d9207c6cc43ab85eeef9db4d33a8ad4e8

先决条件

  • 获取.account.privateKey=38000e15ca07309cc2d0b30faaaadb293c45ea222a117e9e9c6a2a9872bb3bcf

安装图表

  1. 获取帐户机密=Geth将用于加密私钥的任何密码短语节点选择器 pod分配的节点标签 bootnode.image.repository存储库要使用的引导节点容器映像bootnode.image.tag要部署的引导节点容器映像标记ethstats.image.repository存储库 埃塞俄比亚统计局要使用的容器映像ethstats.image.tag要部署的ethstats容器映像标记ethstats.webSocketSecret文件 发布数据的ethstats秘密 连接ethstats的我的秘密 ethstats.service.type类型 k8sethstats的服务类型geth.image.repository存储库 获取要使用的容器映像geth.image.tag标签 获取要部署的容器映像标签获取发送复制计数获取事务节点副本计数 获取发送服务.type geth事务节点的k8s服务类型 ClusterIP 获取发送参数.rpcapi 通过HTTP-RPC接口提供的API,web3 geth.miner.replicaCount公司 geth miner节点副本计数 3 获取矿工帐户.secret 获取帐户密码 我的秘密帐户密码 获取.genesis.networkId以太坊eth网络idgeth.genesis.困难以太坊eth网络困难geth.genesis.gasLimit公司以太坊eth网络气体限制获取帐户地址 获得初始资金并存入采矿乙醚的账户 获取.account.privateKey获取私钥获取帐户机密 获取帐户机密
  2. 安装图表如下:

    $ helm install --name my-release stable/ethereum     --set geth.account.address=[PUBLIC_ADDRESS]     --set geth.account.privateKey=[PRIVATE_KEY]     --set geth.account.secret=[SECRET]

    使用上面生成的示例,配置相当于:

    • geth.account.address = 0xab70383d9207c6cc43ab85eeef9db4d33a8ad4e8
    • geth.account.privateKey = 38000e15ca07309cc2d0b30faaaadb293c45ea222a117e9e9c6a2a9872bb3bcf
    • geth.account.secret = any passphrase that Geth will use to encrypt your private key

卸载图表

要卸载/删除my release部署:

$ helm delete my-release

该命令将删除与图表关联的所有Kubernetes组件并删除该版本。

配置

下表列出了vault图表的可配置参数及其默认值。

Parameter Description Default
pod分配的节点标签 Container pull policy bootnode.image.repository存储库要使用的引导节点容器映像bootnode.image.tag要部署的引导节点容器映像标记ethstats.image.repository存储库
埃塞俄比亚统计局要使用的容器映像ethstats.image.tag要部署的ethstats容器映像标记ethstats.webSocketSecret文件 发布数据的ethstats秘密 连接ethstats的我的秘密
ethstats.service.type类型 k8sethstats的服务类型geth.image.repository存储库 获取要使用的容器映像geth.image.tag标签
获取要部署的容器映像标签获取发送复制计数获取事务节点副本计数 获取发送服务.type geth事务节点的k8s服务类型
ClusterIP 获取发送参数.rpcapi 通过HTTP-RPC接口提供的API,web3
geth.miner.replicaCount公司 geth miner节点副本计数 3
获取矿工帐户.secret 获取帐户密码 我的秘密帐户密码
获取.genesis.networkId以太坊eth网络idgeth.genesis.困难以太坊eth网络困难geth.genesis.gasLimit公司以太坊eth网络气体限制获取帐户地址 获得初始资金并存入采矿乙醚的账户 LoadBalancer
获取.account.privateKey获取私钥获取帐户机密 获取帐户机密 ethereum/client-go
geth.image.tag geth container image tag to deploy v1.7.3
geth.tx.replicaCount geth transaction nodes replica count 2
geth.tx.service.type k8s service type for geth transaction nodes ClusterIP
geth.tx.args.rpcapi APIs offered over the HTTP-RPC interface eth,net,web3
geth.miner.replicaCount geth miner nodes replica count 3
geth.miner.account.secret geth account secret my-secret-account-password
geth.genesis.networkId Ethereum network id 98052
geth.genesis.difficulty Ethereum network difficulty 0x0400
geth.genesis.gasLimit Ethereum network gas limit 0x8000000
geth.account.address Geth Account to be initially funded and deposited with mined Ether
geth.account.privateKey Geth Private Key
geth.account.secret Geth Account Secret

使用–set key=value[,key=value]参数为helm install指定每个参数。例如,要配置networkid:

$ helm install stable/ethereum --name ethereum --set geth.genesis.networkid=98052

或者,可以在安装图表时提供指定上述参数值的YAML文件。例如,

$ helm install stable/ethereum -f values.yaml

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/19536.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计ethereum – 以太坊

提供最优质的资源集合

立即查看 了解详情