Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.13 KB

README.md

File metadata and controls

52 lines (36 loc) · 1.13 KB

Kybra-Unique-Principal-ID

ICP network - Passport attestation of princpipal ID - backend (Kybra)

Commands

  • 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

Warning

  • Kybra only work with unencrypted identities!