ethereum 個資 個人資料 隱私

和朋友聊天提到 隱私資料,來源不刪除沒關係,但不能被關連到 這點 一開始 我覺得 這跟刪掉來源,同等難度 但 今天看一些區塊鍊文章時,其中有一個點,跟這有關 上鍊後資料無法刪除,那就只能像妳說的,採用 不能被關連到來處理 當然 肯定要有一個完整的關制才行,看將來有沒有人提出了

2019-01-02 · 1 min · 12 words · Me

[轉]區塊鏈 Blockchain – 以太坊測試網絡 Ethereum Testing network

https://www.samsonhoi.com/677/blockchain-ethereum-testing-network https://www.samsonhoi.com/

2019-01-02 · 1 min · 2 words · Me

台北以太坊社群專欄

https://medium.com/taipei-ethereum-meetup

2018-12-28 · 1 min · word · Me

ethereum dapp

https://dappradar.com/

2018-12-28 · 1 min · word · Me

[轉]區塊鏈養蝦遊戲和數學之美

https://medium.com/taipei-ethereum-meetup/ether-shrimp-farm-analysis-e92ab76dc22f

2018-12-28 · 1 min · word · Me

ethereum metamask chrome use detail and becarful

1. You want to clean all data, just remove metamask then reinstall chrome extend again. Sometime do this step, can finish many problems. 2. use private china (private network). If you reconnect failed or miss connect, 3. private network best good action is Sometime you sure private network is work and ok. But check netowrks list failed, this time just redo Custome Network then everything is ok. 4. How to know private network have web3 and ok? ...

2018-12-25 · 2 min · 344 words · Me

ethereum poa docker-compose docker

https://medium.com/taipei-ethereum-meetup/%E4%BD%BF%E7%94%A8-go-ethereum-1-6-clique-poa-consensus-%E5%BB%BA%E7%AB%8B-private-chain-1-4d359f28feff node 1 node 2 signer 1 signer 2 all private key & address create by https://vanity-eth.tk/ check again private key & address by https://www.myetherwallet.com/#view-wallet-info node1 private key:138cbbfb21686ddc3b5ffeb2cfc83491175af68319977acb81d0ae93392c626c account address:e79d33e93bd888b35e055f1a12d876354729037b node2 private key:df0c39faccd3c9d6d10091932f2214b9d42e92bd07b64a1552d13d39a6a84122 account address:Bf95EAacf10BEA53f0a73955a7eFCE2fb4A4Ef1d signer1 nodekeyhex:fcc406a7344690f66c757cc2c9987e3e78bb01e33229f9877d48a7fecc2d6657 node address:256330933851d6d3c5f7326b01021553415a33cd5485e23bfbe35f6321e6e2f8373bb1c94933fdb3283a1a8b2b737587dd99c555029e65e173a3094daa39277c private key:d05bd152f3d71ff5f91830f3ccc1090fb670c7026ebf8c2136d4e5090d59398d account address:5921a4C1B13afbD4b61d63e9c7BD47741C47B176 signer2 private key:df504d175ae63abf209bad9dda965310d99559620550e74521a6798a41215f46 account address:8Cc5A1a0802DB41DB826C2FcB72423744338DcB0 docker-compose version: '3.3' services: go-ethereum-node1: build: context: go-ethereum-node1/ volumes: #- ./go-ethereum/keystore:/root/.ethereum/devchain/keystore:rw - ./go-ethereum-node1/genesis/poa_for_dev.json:/root/genesis/poa_for_dev.json:ro - /etc/localtime:/etc/localtime:ro #- ./go-ethereum/log:/root/log:rw entrypoint: /root/start.sh ports: - "18545:8545" - "30313:30303" - "30313:30303/udp" networks: - fastdev go-ethereum-node2: build: context: go-ethereum-node2/ volumes: - ./go-ethereum-node2/genesis/poa_for_dev.json:/root/genesis/poa_for_dev.json:ro - /etc/localtime:/etc/localtime:ro entrypoint: /root/start.sh ports: - "28545:8545" - "30323:30303" - "30323:30303/udp" networks: - fastdev go-ethereum-signer1: build: context: go-ethereum-signer1/ volumes: - ./go-ethereum-signer1/genesis/poa_for_dev.json:/root/genesis/poa_for_dev.json:ro - /etc/localtime:/etc/localtime:ro entrypoint: /root/start.sh ports: - "38545:8545" - "30333:30303" - "30333:30303/udp" networks: - fastdev go-ethereum-signer2: build: context: go-ethereum-signer2/ volumes: - ./go-ethereum-signer2/genesis/poa_for_dev.json:/root/genesis/poa_for_dev.json:ro - /etc/localtime:/etc/localtime:ro entrypoint: /root/start.sh ports: - "48545:8545" - "30343:30303" - "30343:30303/udp" networks: - fastdev mongo: image: mongo #restart: always environment: MONGO_INITDB_ROOT_USERNAME: root MONGO_INITDB_ROOT_PASSWORD: example volumes: - alldata:/data/db networks: - fastdev mongo-express: image: mongo-express #restart: always links: - mongo:mongo ports: - 8081:8081 environment: ME_CONFIG_MONGODB_ADMINUSERNAME: root ME_CONFIG_MONGODB_ADMINPASSWORD: example networks: - fastdev postgres: image: postgres #restart: always environment: PGDATA: /var/lib/postgresql/data/pgdata POSTGRES_USER: root POSTGRES_PASSWORD: example volumes: - alldata:/var/lib/postgresql/data networks: - fastdev mariadb: image: mariadb #restart: always environment: MYSQL_ROOT_PASSWORD: example volumes: - alldata:/var/lib/mysql networks: - fastdev adminer: image: adminer #restart: always ports: - 8082:8080 networks: - fastdev openldap: build: context: openldap/ command: [--copy-service, --loglevel, debug] environment: LDAP_ORGANISATION: "das-labor" LDAP_DOMAIN: "das-labor.org" LDAP_BASE_DN: "dc=das-labor,dc=org" LDAP_ADMIN_PASSWORD: "abc123" LDAP_CONFIG_PASSWORD: "abc123" volumes: - ./openldap/data/ldap/environment:/container/environment/01-custom - ./openldap/data/slapd/database:/var/lib/ldap - ./openldap/data/slapd/config:/etc/ldap/slapd.d #- ./openldap/certs:/container/service/slapd/assets/certs ports: - "389:389" - "689:689" networks: - fastdev phpldapadmin: image: osixia/phpldapadmin command: [--loglevel, debug] environment: PHPLDAPADMIN_LDAP_HOSTS: "openldap" ports: - "6443:443" networks: - fastdev volumes: alldata: networks: fastdev: driver: bridge geth Dockerfile all same ...

2018-12-19 · 7 min · 1377 words · Me

ethereum-etl ethereumetl elk logstash kibana

all output columns with logstash filter { if [srctype] == "etl" { #[fields][srctype] csv { columns => [ "number", "hash", "parent_hash", "nonce", "sha3_uncles", "logs_bloom", "transactions_root", "state_root", "receipts_root", "timestamp", "extra_data", "transaction_count", "gas_limit", "size", "total_difficulty", "difficulty", "miner", "block_hash", "block_number", "transaction_index", "from_address", "to_address", "value", "gas", "gas_price", "input", "address", "bytecode", "function_sighashes", "is_erc20", "is_erc721", "log_index", "transaction_hash", "data", "topics", "cumulative_gas_used", "gas_used", "contract_address", "root,status" ] separator => "," remove_field => ["message"] #autodetect_column_names => true #have problems #autogenerate_column_names => true #have problems skip_empty_columns => true skip_empty_rows => true } }

2018-12-17 · 1 min · 82 words · Me

ethereum-etl ethereumetl docker

docker-compose.yml version: '3.3' services: ethereum_etl: build: context: . volumes: - ./var/log/:/ethereum-etl/output:rw #- /root/go/src/github.com/ethereum/go-ethereum/build/bin/data:/ethereum-etl/ipc #failed ipc is interface not data networks: - etl networks: etl: driver: bridge DOCKERFILE FROM python:3.6-alpine MAINTAINER Eric Lim ENV PROJECT_DIR=ethereum-etl RUN mkdir /$PROJECT_DIR WORKDIR /$PROJECT_DIR RUN apk add --no-cache gcc musl-dev #for C libraries: RUN pip install --upgrade pip && pip install ethereum-etl #ENTRYPOINT ["python", "ethereumetl"] ENTRYPOINT ["ethereumetl"] CMD ["export_all", "-s", "0", "-e", "500000", "-p", "http://xxx.xxx.xxx.xxx:8545", "-o", "output"] -s -e -p -o see https://github.com/blockchain-etl/ethereum-etl ...

2018-12-17 · 1 min · 112 words · Me

geth log No Year

geth log mined INFO [12-07|13:04:44] 🔨 mined potential block number=1934700 hash=3f9161…88da7d only month-day ……. grok { match => ["message", "%{LOGLEVEL:logType} \[%{DATA:gethmm}-%{DATA:gethdd}\|%{DATA:gethtime}\] %{GREEDYDATA:tmessage} number=(?\b\w+\b) hash=(?\b\w+...\w+\b)"] add_field => ["gethdate", "%{[gethmm]}-%{[gethdd]} %{[gethtime]}"] } ruby { code => " tstamp = event.get('@timestamp').to_i event.set('epoch',tstamp) event.set('gethdate', Time.at(tstamp).strftime('%Y')+'-'+event.get('gethdate')) " } date { match => [ "gethdate" , "YYYY-MM-dd HH:mm:ss"] target => "gethdate" timezone => "Asia/Taipei" } Recreate index GET _cat/indices?v GET _cat/indices?v&s=index GET filebeat-6.5.1-2018.12.06 DELETE filebeat-6.5.1-2018.12.06 GET _cat/indices?v ...

2018-12-07 · 1 min · 82 words · Me

two hex digits per byte

one byte = 8 bit 4 bit => hex 0000 2*2*2*2 = 16 so one byte = 4bit + 4bit = hex + hex

2018-11-16 · 1 min · 24 words · Me

mocha supertest geth mine

1、node & npm apk add nodejs npm nano curl 2、mkdir t put files to t or nano test.js 2.1、nano test.js var supertest = require('supertest'); describe('GET http://go-ethe:8545/', function () { let request = supertest('http://go-ethe:8545') it('respond with json 1', function (done) { request.post('/') .send({"jsonrpc":"2.0","method":"miner_start","params":[1],"id":1}) .expect('Content-Type', /json/) .expect(200, done); }); let gethcmd = {"jsonrpc":"2.0","method":"eth_mining","params":[],"id":1} it('respond with json mining actively start ', function (done) { request.post('/') .send(gethcmd) .expect('Content-Type', /json/) .expect(200) .expect((res)=>{if (!(true == res.body.result) ) throw new Error("mining actively start failed!"); }) .end(done); }); it('respond with json 2', function (done) { request.post('/') .send({"jsonrpc":"2.0","method":"miner_stop","params":[],"id":1}) .expect('Content-Type', /json/) .expect(200, done); }); let gethcmd2 = {"jsonrpc":"2.0","method":"eth_mining","params":[],"id":1} it('respond with json mining actively stop ', function (done) { request.post('/') .send(gethcmd2) .expect('Content-Type', /json/) .expect(200) .expect((res)=>{if (!(false == res.body.result) ) throw new Error("mining actively stop failed!"); }) .end(done); }); }); 3、npm init -y && npm i -S supertest mocha ...

2018-11-16 · 1 min · 191 words · Me

ethereum geth rpc Why The method miner_start does not exist/is not available

………………………………………. ………………………………………. ………………………………………. go-ethereum https://github.com/ethereum/go-ethereum/wiki/Management-APIs#miner geth –rpcapi “db,personal,eth,net,web3” --rpc –rpcaddr “0.0.0.0” –rpccorsdomain “*” –rpcvhosts=* So you want miner, need put “db,personal,miner,eth,net,web3” curl -X POST -H “Content-Type: application/json” –data ‘{“jsonrpc”:“2.0”,“method”:“miner_stop”,“params”:[],“id”:1}’ go-ethe:8545 {“jsonrpc”:“2.0”,“id”:1,“result”:null} Fxxx Document……………………………………….. Import see this url document web3 https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_mining https://github.com/ethereum/web3.js/

2018-11-15 · 1 min · 41 words · Me

logstash kibana geth log ethereum Grok Constructor

filter json { source => “message” } This mean is Try to use json format transfer log, then put some data to message filed. So some filed just be setting, and some data set to message. .Use this to check mach and log https://grokconstructor.appspot.com/do/match https://blog.johnwu.cc/article/elk-logstash-grok-filter.html https://github.com/logstash-plugins/logstash-patterns-core/blob/master/patterns/grok-patterns This is geth log for example A: INFO [11-14|09:58:17.730] Generating DAG in progress epoch=1 percentage=99 elapsed=4m8.643s INFO [11-15|01:41:33.455] Generating DAG in progress epoch=1 percentage=9 elapsed=27.614s B: INFO [11-15|01:19:44.590] Loaded most recent local fast block number=0 hash=656134…58fded td=1 age=49y7mo1h, Loaded most recent local fast block ...

2018-11-15 · 2 min · 366 words · Me

ethereum private chain by ubuntu

https://gist.github.com/javahippie/efee5417c69aaad3baf297dd2cd71fc6 version: '3.3' services: go-ethereum: build: context: go-ethe/ ports: - "8545:8545" - "30303:30303" networks: - elk networks: elk: driver: bridge FROM ubuntu:xenial RUN apt-get update \ && apt-get install -y wget \ && rm -rf /var/lib/apt/lists/* WORKDIR "/opt" ARG BINARY="geth-linux-amd64-1.8.17-8bbe7207.tar.gz" RUN wget "https://gethstore.blob.core.windows.net/builds/$BINARY" RUN tar -xzvf $BINARY --strip 1 RUN rm $BINARY ADD ./genesis.json ./genesis.json RUN ./geth init genesis.json CMD nohup ./geth --dev --rpc --rpcaddr "0.0.0.0" --rpccorsdomain "*" --mine #geth --syncmode "light" --cache=2048 EXPOSE 8545 EXPOSE 30303

2018-11-08 · 1 min · 77 words · Me

docker-compose ethereum geth private chain

Suggestion is use docker-machine for make docker machine is more easy. VirtualBox windows Use HFS.exe for copy file to docker machine instance. Directory < ethtest > ||=docker-compose.yml ||=< go-ether > &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp||=Dockerfile &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp||=start.sh &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp||=< genesis > &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp||=genesis.json 1、docker-compose.yml import: .keystore maybe no use, because run again docker-compose need to delete /go-ether/keystore .entrypoint must have together Dockerfile ENTRYPOINT ` version: '3.3' services: go-ether: build: context: go-ether/ volumes: #- ./go-ether/keystore:/root/.ethereum/devchain/keystore:rw - ./go-ether/genesis/genesis.json:/root/genesis/genesis.json:ro - /etc/localtime:/etc/localtime:ro entrypoint: /root/start.sh ports: - "8545:8545" - "30303:30303" - "30303:30303/udp" networks: - elk networks: elk: driver: bridge ` 2、Dockerfile ...

2018-11-07 · 3 min · 590 words · Me

$@ linux shell

http://jyhshin.pixnet.net/blog/post/39349999-shell-script-%E8%87%AA%E5%8B%95%E5%AE%9A%E7%BE%A9%E7%9A%84%E8%AE%8A%E6%95%B8 $@ 包含所有輸入的參數,$@ 即代表 $1, $2,….直到所有參數結束。$@ 用將所有參數以空白為間隔,存在 $@ 中。也就是說 $@ 代表了 “$1” “$2” “$3”….。

2018-11-07 · 1 min · 14 words · Me

ethereum private chain 私有鏈

https://github.com/ethereum/go-ethereum/wiki/Private-network https://medium.com/taipei-ethereum-meetup/%E4%BD%BF%E7%94%A8-go-ethereum-1-6-clique-poa-consensus-%E5%BB%BA%E7%AB%8B-private-chain-1-4d359f28feff https://blog.fukuball.com/ethereum-%E9%96%8B%E7%99%BC%E7%AD%86%E8%A8%98-22geth-%E5%9F%BA%E7%A4%8E%E7%94%A8%E6%B3%95%E5%8F%8A%E6%9E%B6%E8%A8%AD-muti-nodes-%E7%A7%81%E6%9C%89%E9%8F%88/ https://medium.com/@javahippie/building-a-local-ethereum-network-with-docker-and-geth-5b9326b85f37 https://mshk.top/2017/11/go-ethereum-1-7-2/ https://www.tiny-calf.com/2018/02/01/GETH%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%9F%BA%E6%9C%AC%E6%93%8D%E4%BD%9C/ https://neighborhood999.github.io/2018/09/19/running-ethereum-on-docker/ https://github.com/yutianwu/ethereum-docker https://github.com/yutianwu/ethereum-docker

2018-11-07 · 1 min · 9 words · Me

ethereum eth --dev & networkid & chainId doesn't work with a custom genesis block

https://github.com/ethereum/go-ethereum/issues/15182 @robert-zaremba You can still use dev with datadir. Dev just uses a 0-period clique chain. That said, –dev was not meant to be used on custom networks / genesis blocks. If you need a custom setup, you can init a chain of your choosing. Dev will try to be smart and configure a lot of stuff for easy testing, but it’s not flexible, it’s easy. 翻譯: --dev不能用在 custom networks 和genesis blocks. ...

2018-11-07 · 1 min · 88 words · Me

ethereum/client-go

https://geek.ink/forum/detail/34

2018-11-06 · 1 min · word · Me