artwook / ledger

Permissioned Ledger
MIT License
0 stars 0 forks source link

Support Artwook as a shared permission blockchain. #12

Closed hackfisher closed 7 years ago

hackfisher commented 7 years ago

From the concept of ChainReactions, only permitted nodes can connect to the Artwork network and access the shared datas.

hackfisher commented 7 years ago

How to get the node_public_key:

runner@art1:~/data/ledger$ wscat -c ws://127.0.0.1:8090
connected (press CTRL+C to quit)
> {"id":2, "method":"call", "params":[1,"login",["alinode","bkdh3ju283j1kjdfh23mn"]]}
< {"id":2,"result":true}
> {"id":2,"method":"call","params":[1,"network_node",[]]}
< {"id":2,"result":2}
> {"id":2,"method":"call","params":[2,"get_info",[]]}
< {"id":2,"result":{"listening_on":"0.0.0.0:2776","node_public_key":"028e36984e1ef341c1af18cbf34fdea542c7a8c36de65b6fc97c2970a9abe0b76a","node_id":"539f3e83baf3ab63ef86a006808ecee2ad005c67e44135bf8be6ebdbaf92dc6abd","firewalled":"unknown","connection_count":2}}

The result of

> {"id":2,"method":"call","params":[1,"network_node",[]]}

2 is the NETWORK_NODE_API_ID, which will be passed to the get_info as parameters.

hackfisher commented 7 years ago

The solution of chainreactions: https://github.com/artwook/ledger/commit/f43c5efcc73fe61144191ebaa196af377abb67a0

clar commented 7 years ago

ChainReactions repo https://github.com/ChainReactions

hackfisher commented 7 years ago

subsequence issue for later improvement:

https://github.com/artwook/ledger/issues/19