Skip to content
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

Supports multiple accounts with the same Passkey #17

Merged
merged 25 commits into from
Sep 29, 2024
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
fix syntax error
zkJoaquin committed Aug 13, 2024
commit 0d801deca56dc4e6d75b900c42859f4719042e89
4 changes: 2 additions & 2 deletions system-contracts/contracts/DefaultAccount.sol
Original file line number Diff line number Diff line change
@@ -239,10 +239,10 @@ contract DefaultAccount is IAccount {
block.chainid
)
);
rootHash = keccak256(abi.encodePacked("\x19\x01", domainSeparator, rootHashWithNonPrefix));
bytes32 rootHash = keccak256(abi.encodePacked("\x19\x01", domainSeparator, rootHashWithNonPrefix));

DecodedWebAuthnSignature memory decodedSignature = PasskeyHelper.decodeWebAuthnP256Signature(
passkeySignedInfo
passkeySignature
);
return PasskeyHelper.verifyByP256Contract(rootHash, decodedSignature, x, y);
}