Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.62 KB

File metadata and controls

46 lines (33 loc) · 1.62 KB

Sign-In with Bitcoin for the Internet Computer

A Sign-In with Bitcoin for the Internet Computer.

Local Development

  1. create canister first
dfx canister create ic_siwb_provider  --specified-id be2us-64aaa-aaaaa-qaabq-cai # if you don't have a specified id, it will be created with a random id
  1. deploy
dfx deploy ic_siwb_provider --argument $'(                                                                                                                                             INT  21:52:52 
    record {
        domain = "127.0.0.1";
        uri = "http://127.0.0.1:5173";
        salt = "123456";
        network = opt "testnet";
        scheme = opt "http";
        statement = opt "Login to the app";
        sign_in_expires_in = opt 1500000000000; 
        session_expires_in = opt 604800000000000; 
        targets = null;
    }
)'

Deployment Arguments Explaination: init_upgrade.rs

Frontend Integration and Example

  1. ic-siwb-identity Library: ic-siwb-identity React Example: Here

  2. LaserEyes Connector Library: LaserEyes Connector React Example: Here