ICP network - Passport attestation of princpipal ID - backend (Kybra)
- Start the server
dfx start (--background) (--clean) # clean is to delete all (private) chain
- Deploy
dfx deploy port (--newtork ic) --verbose --argument '(principal "<admin-prinpical-id>")' # use --network -ic to deploy on public chain
-
Set url
- must be called before other action
- must be IPv6
- call it with identity that is defined in deploy action
dfx canister call <canister> set_url '("<url>")'
- Get info if prinpipal is attested:
dfx canister call <canister> is_attested '(principal "<principal>"))
- Get attestation:
dfx canister call <canister> get_attestation '(principal "<principal>")
- Other usefull commands
dfx identity new user # creating new user (use --disable-encryption in Kybra!)
dfx identity list # list of ussers
dfx identity use user1 # change active user
dfx identity get-principal # get principal
source venv/bin/activate # to activate python virtual enviroment
- Kybra only work with unencrypted identities!