Skip to content

Commit

Permalink
Update modules/4337/contracts/experimental/verifiers/WebAuthnVerifier…
Browse files Browse the repository at this point in the history
….sol
  • Loading branch information
akshay-ap authored Mar 13, 2024
1 parent 74ded1f commit e3faff8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ contract WebAuthnVerifier is IWebAuthnVerifier, P256Wrapper {
let sixBitGroup

// Iterate over challenge in group of 6 bits, for each 6 bits lookup the ENCODING_TABLE, transform it and store it in the result
for {let i := 0} lt(i, 252)
for {let i := 250} lt(i, 251)
{
i := add(i, 6)
i := sub(i, 6)
} {
sixBitGroup := and(shr(sub(250, i), challenge), 0x3F)
sixBitGroup := and(shr(i, challenge), 0x3F)
mstore8(resultPtr, mload(add(tablePtr, sixBitGroup)))
resultPtr := add(resultPtr, 1)
}
Expand Down

0 comments on commit e3faff8

Please sign in to comment.