Skip to content

product-crowd-sale-protocol/pcs_python_eos

Repository files navigation

Product-Crowd-Sale-Protocol Client

~Building Open Secure Apps ~

Product-Crowd-Sale, PCS is a secure protocol providing authorizations and liquidty. Participants can have full control of functions below

  1. authorization to login to systems
  2. transfering the authorization to other nodes
  3. buying / selling that authorization in the exchange on a decentralized protocol

Fast Guide

just type

$ python3 wakannai.py

System

PCS_README output-0

Advanced NFT and Authorization / Login

PCS_README(1) output-0

PCS_README(2) output-0

Basical Security @with_account

PCS_README(3) output-0

Basical Security @without_account_without_wallet

PCS_README(4) output-0

Two leveled Security

PCS_README(5) output-0

Anti Privatekey Loss

PCS_README(6) output-0

Class Relation

PCS_README(8) output-0

Advanced NFT and Authorization / Login

A NFT is attached Sub-Publickey generated by a password. For users of secure apps, only a password is needed to login.

Developers can build authorization systems for token holders by PCS_Client.check_sig() function. Login system does not need other functions, then building secure apps on this library needs few lines codes in many cases.

Security of password --> subkeys

In the process of generating keys, BlackBox is set for anti Brute Force attacks and traceability against attackers.(“Security and Safety” in detail )

Two leveled Security

In joining phase, users have only password or sub privatekey (without_account_without_wallet mode), only DEX uses are forbidden. After having an account of the chain. they can move tokens to accounts and have full safety and full control. (with_account mode)

Usage without account and wallet

A client can transfer tokens and refresh subkeys with password or sub privatekey (transferid2, refreshkey2), and can login each services for the token as well (check_sig).

Usage with account

A client can transfer tokens and refresh subkeys with the accoun keys. And any contract function including DEX operation is available.

Anti Privatekey Loss

with_account mode provides users safety of Service Logins excepting the case of losing both of account key and sub privatekey.

lock function

When sub-privatekeys are exposed by hacking or by free riders, any honest node can lock the NFT and stop its functions with the sub-privatekey. (client.py : PSC_Client.lock() )

The owner can recover its functions of locked NFT with refreshkey()

Exchange (DEX)

with_account mode users can use DEX to sell / buy NFTs. (dexclient.py)

Dependencies

requirements: keosd installation. https://developers.eos.io/eosio-home/docs/introduction Please install cleos & keosd as the link above guides. Installing CDT is not necessaly (3~5 hours are needed). Making sure of

$ keosd 

running is necessaly at least. The codes work when

$ keosd --http-server-address  127.0.0.1:8888

is runnig. If no account, pcseveryone2@test is available as a rental account.

$ cleos wallet import --private-key 5KhcoSuV9vCyDY5efv7giGdpEmbyuscWfT9R3tY2dmGy9E7ZotM

python requirements

$ pip install -r requirements.txt

Sample Secure Apps

https://link-airdrop.s3.amazonaws.com/index.html

When Confused

just type

$ python3 wakannai.py

About

python sdk of product-crowdsale-protocol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages