Skip to content

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

License

Notifications You must be signed in to change notification settings

ZeroPass/Kybra-Unique-Principal-ID

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages