Skip to content

Commit

Permalink
chore: use proof as bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
dawksh committed Aug 7, 2024
1 parent 6dd61b1 commit d4c2b32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ attestation based identity oracle

```
Deployer: 0x0a1B07c0a41c3Ea539AcfD6655dc7B76ccbF3030
Deployed to: 0x645B150c64aC771DA036EbA899C8765B1C5FC92d
Transaction hash: 0xecd2ead753d91155a3c5c111fcda072c3a0f03b637041e16079ea7885672af35
Deployed to: 0x4E2D12318497D8f41F010C1382cD82ae5BFBF4FE
Transaction hash: 0x68fe9512b386273cd15ca113917de14b52d06c6ffead78db335fa66d67fb9894
```
6 changes: 4 additions & 2 deletions src/WorldIDVerifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,19 @@ contract WorldIDVerifier {
address signal,
uint256 root,
uint256 nullifierHash,
uint256[8] calldata proof
bytes calldata proof
) public {
if (nullifierHashes[nullifierHash]) revert InvalidNullifier();

uint256[8] memory unpackedProof = abi.decode(proof, (uint256[8]));

worldId.verifyProof(
root,
groupId,
abi.encodePacked(signal).hashToField(),
nullifierHash,
externalNullifierHash,
proof
unpackedProof
);
nullifierHashes[nullifierHash] = true;
}
Expand Down

0 comments on commit d4c2b32

Please sign in to comment.