Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions simple-identity-sp1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,32 @@ To build all methods and register the smart contract on the local node from the
cd script
cargo run -- register-contract
```

The expected output is `📝 Registering new contract simple_identity`.

### Register an account / Sign up

To register an account with a username (alice) and password (abc123), execute:

```sh
cargo run -- register-identity alice.simple_identity abc123
cargo run -- register-identity alice@simple_identity abc123
```

The node's logs will display:

```sh
INFO hyle_verifiers: ✅ SP1 proof verified.

```

### Verify identity / Login

To verify alice's identity:

```sh
cargo run -- verify-identity alice.simple_identity abc123 0
cargo run -- verify-identity alice@simple_identity abc123 0
```

This command will:

1. Send a blob transaction to verify `alice`'s identity.
Expand All @@ -63,4 +67,3 @@ Upon reception of the proof, the node will:
1. Update the contract's state.

The node's logs will display:

Loading