PoLI is a proposed consensus mechanism which runs by hashing the uniqueness of a given document. The blockchain's ultimate goal is to make sure all documents contained have as little infringement as possible.
This particular repository, however, instead of implementing an entire blockchain, works on top of the Ethereum blockchain for simplicity puropses.
The Infringement algorithm, the code, smart contract, etc. are open and free to use. Feel free to mention me if you like it xD
Update v1.0.1: Matic integration now supported: Change url from test_url
to matic_url
to continue working with Matic mainnet. Note: Matic SDK configuration is necessary and it is not as readily supported as Ethereum.
- Clone the repo in a local directory:
git clone [add_the_url_here] PoLI
-
Navigate to ON_CHAIN and copy the contents of
token.sol
to a new remix file remix.ethereum.org -
Setup Remix to Ropsten Testnet and deploy the contract
-
Copy the contract code to
OFF_CHAIN/src/ethacc.py
under "PASTE YOUR CONTRACT ADDRESS HERE" comment. -
Copy your local Ethereum wallet PubKey to "PASTE YOUR WALLET ADDRESS HERE" in the same document.
-
Paste two documents and rename them paper1.pdf and paper2.pdf. Remember paper1.pdf will be published to the blockchain whereas the other is for infringement checking.
-
Run
core.py
Shaan Sundar,
Twitter: @notthatsundar
email: [email protected]