Skip to content

SIWB, Sign in with Bitcoin for ICP, the Internet Computer. Build cross chain Bitcoin apps on ICP!

License

Notifications You must be signed in to change notification settings

ordinalsbot/ic-siwb

 
 

Repository files navigation

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

About

SIWB, Sign in with Bitcoin for ICP, the Internet Computer. Build cross chain Bitcoin apps on ICP!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 64.0%
  • TypeScript 34.9%
  • Other 1.1%