amirhyoussefi / ic-sorn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

On-chain System of Record with Public Notary

Overview

We use Internet Computers following advantages to make a cheap and scalable System of Record with Public Notary:

  1. Low Cost of on-chain data storage

  2. Async inter-canister calls for scalability and lower latency

Then develop more features on that:

  1. Oracle (real world measures through API)

  2. Reveal Share feature with selective Decryption key sharing

  3. Billing

Deploy Instructions

  1. Start a local internet computer.

    dfx start
    
  2. Open a new terminal window.

  3. Reserve an identifier for your canister.

    dfx canister create --all 
    
  4. Build your canister.

    dfx build
    
  5. Deploy your canister.

    dfx canister install --all
    
  6. Subscribe to the "Apples" topic.

    dfx canister call subscriber init '("BTC-PRICE-AT-COINBASE")'
    
  7. Publish to the "Apples" topic.

    dfx canister call notary publish '(record { "topic" = "BTC-PRICE-AT-COINBASE"; "value" = 21000 })'
    
  8. Receive your subscription.

    dfx canister call subscriber getRecord
    

About


Languages

Language:JavaScript 60.5%Language:Motoko 30.2%Language:Makefile 3.9%Language:HTML 3.0%Language:CSS 2.5%