sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum solc
git clone git@gitlab.com:prometeus_/prometeus.git
cd prometeus
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cd node
./init.sh
or to start already initialized node
geth --dev --datadir chaindata/ --minerthreads 1 console
Now dev node with preloaded smart contract is runing on localhost.
Open second terminal and run DataValidator function to initialize new DataOwner in local dev node.
It will create new blockchain accoount, save encrypted DataOwner for more details see the link
cd ../tests
python transactions.py
The system has deployed with local dev geth node and have no any transactions with main blockchain. Thera hosts to serve PoC endpoints:
First create DataValidator account in PoC enviroment
https://api.prometeus.io/init_data_validator
it returns new account related credentials with some coins on balance
{"blockchain_account": {"account": "0x9e2c064cfb29017445ac2a9d61bd2aa1fd2dbbae",
"identity": "Npo9yyg9Kh2Eb1eog6dwimNRG6Ob9vOmja4KZdFWhs4",
"private": "0xa060f56f7cd0c2462f0db8f94f38adf320690f5fe9ba9f941888e097aec5f81c",
"balance": 1000000000000000000},
"system_account": {"login": "login", "password": "password"}}Live demo
curl https://api.prometeus.io/init_data_validator
https://api.prometeus.io/init_data_owner
- creates blokchain account for DataOwner and link it with DataValidator blokchain account
- map DataValidator->DataOwner is stored in smart contract
- encrypt DataOwner data set and save file to the store
Params
{
"data":"DataOwner data to store",
"validator": "0x9e2c064cfb29017445ac2a9d61bd2aa1fd2dbbae"
}Returns
{
"blockchain_account": {"account": "0x9e2c064cfb29017445ac2a9d61bd2aa1fd2dbbae",
"identity": "CaeguhpOwchd86a_7JXBbBYtWg0JtS7oiTjR6lE7DJQ",
"private": "0xd649203af334415a04ab464356bd13b7d26d275456bf97b90549f51a03b3cf7e"},
"storage_url": "https://storage.prometeus.io/9e2c064cfb29017445ac2a9d61bd2aa1fd2dbbae_9e2c064cfb29017445ac2a9d61bd2aa1fd2dbbae",
"validator": "0x9e2c064cfb29017445ac2a9d61bd2aa1fd2dbbae",
"private_key": "3-j1I7hUZXgymbGL6wZysN_f-7rCfkD72fIDy8hMEE8=",
"md5": "9a6d26641a37729b316df6b21412e73a"
}Live demo
curl -H "Content-Type: application/json" --request POST --data '{"data":"xyzsdfsdfsfdsfdsf", "data_validator":"0xb19542ea90295401ed7558077d582b70f208bfba"}' https://api.prometeus.io/init_data_owner
With docker compose
docker-compose up -d --build