A Sign-In with Bitcoin for the Internet Computer.
- 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
- 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
-
ic-siwb-identity Library: ic-siwb-identity React Example: Here
-
LaserEyes Connector Library: LaserEyes Connector React Example: Here