Skip to content

Upgrade examples to latest release #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
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