Skip to main content

Who am I?

Who am I? demonstrates how entities on the Internet Computer are identified. Every entity, such as a user or canister smart contract, has a principal identifier. Principals can be used for identification and authentication. Who am I? uses Internet Identity (II) for user authentication, then displays the principal identifier associated with that Internet Identity on the user interface.

This application's logic is written in Motoko, a programming language designed specifically for developing canisters on ICP.

Project structure

The /backend folder contains the Motoko canister, app.mo. The /frontend folder contains web assets for the application's user interface. The user interface is written using the React framework. Edit the mops.toml file to add Motoko dependencies to the project.

Deploying from ICP Ninja

When viewing this project in ICP Ninja, you can deploy it directly to the mainnet for free by clicking "Deploy" in the upper right corner. To open this project in ICP Ninja, click here.

To download or reset the project files, click the menu option next to the deploy button.

Build and deploy from the command-line

To migrate your ICP Ninja project off of the web browser and develop it locally, follow these steps. These steps are necessary if you want to deploy this project for long-term, production use on the mainnet.

1. Download your project from ICP Ninja using the 'Download files' button on the upper left corner under the pink ninja star icon.

2. Open the BUILD.md file for further instructions.