This repository is a fork of Ethereum's go-ethereum repository. We expand on v1.16.0 by adding functionalities that enable smart contracts to compute on encrypted data.
last updated on 2024-06-18
- Ubuntu 22.04
- Setup User
- Setup SWAP
- Setup Compilation Environment
- Building From Source Code
- Setup Environment
- Creating Genesis
- Initial iSunCoin
- Starting iSunCoin in Screen
- Starting ecProxy
- Final Check
- Use iSunCoin with imToken
- Git
- Install Golang
cd /workspace
git clone https://github.com/CAFECA-IO/isuncoin
cd isuncoin
make geth
sudo mv isuncoin/ /usr/local
sudo ln -s /usr/local/isuncoin/build/bin/geth /usr/local/bin
mkdir ~/isuncoin
cd ~/isuncoin
vi genesis.json
{
"config": {
"chainId": 8017,
"homesteadBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"istanbulBlock": 0,
"berlinBlock": 0,
"londonBlock": 0
},
"alloc" : {},
"coinbase" : "0x0000000000000000000000000000000000000000",
"difficulty" : "0x20000",
"extraData" : "",
"gasLimit" : "0xffffff",
"nonce" : "0x0000000000001f51",
"mixhash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"timestamp" : "0x65692200"
}
geth init --datadir /workspace/chaindata ~/isuncoin/genesis.json
- Will Single Command
geth \
--datadir /workspace/chaindata \
--networkid 8017 \
--mine --miner.threads=1 --miner.etherbase 0xCAFECA05eB2686e2D7e78449F35d8F6D2Faee174 \
--http --http.api eth,net,web3 \
--http.port 8545 --port 30303 --authrpc.port 8551
- enode://199e1fc79824ee7df1164c30427481ba0f0c42de3b3270860619cada6780ebe34edbe76251bf30326f007c1bc82b774eb7e86f4672ce41b2974823fcc4fccbaa@49.0.255.11:30303
bash <(curl https://raw.githubusercontent.com/Luphia/ecProxy/master/shell/install-lite.sh -kL)
curl --location 'localhost' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc":"2.0",
"method":"eth_blockNumber",
"params":[],
"id":83
}'
- click 「My Profile」
- Click 「Blockchain Networks」
- Click 「+」
- Click 「Customize」
Blockchain Network Name:
iSunCoin
Add RPC URL:
https://isuncoin.baifa.io
Chain ID:
8017
Use as a testnet:
(disable)
Native token symbol:
ISC
Block Explorer URL:
https://baifa.io/app/chains/8017
- Click 「Save」
- Click 「Manage wallets」
- Click 「Add」
- Now you can find iSunCoin in Custom Networks
- Click 「+」 in iSunCoin Block
- Now you can use iSunCoin in imToken