Skip to content

Commit

Permalink
docs(identity): add the generate commitment function to the readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
vplasencia committed Oct 27, 2024
1 parent 3d535dd commit fc7cff9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/identity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,11 @@ const signature = identity.signMessage(message)

Identity.verifySignature(message, signature, identity.publicKey)
```

\# **Identity.generateCommitment**(publicKey: _Point_): _bigint_

```typescript
import { Identity } from "@semaphore-protocol/identity"

Identity.generateCommitment(identity.publicKey)
```

0 comments on commit fc7cff9

Please sign in to comment.