Skip to content

Commit

Permalink
Merge pull request #18 from base-org/wilson/update-readme
Browse files Browse the repository at this point in the history
add warning
  • Loading branch information
wilsoncusack committed Apr 22, 2024
2 parents 66abcef + 0705335 commit 619f20a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Webauthn-sol is a Solidity library for verifying WebAuthn authentication asserti

This library is optimized for Ethereum layer 2 rollup chains but will work on all EVM chains. Signature verification always attempts to use the [RIP-7212 precompile](https://github.com/ethereum/RIPs/blob/master/RIPS/rip-7212.md) and, if this fails, falls back to using [FreshCryptoLib](https://github.com/rdubois-crypto/FreshCryptoLib/blob/master/solidity/src/FCL_ecdsa.sol#L40).

> [!IMPORTANT]
> FreshCryptoLib uses the `ModExp` precompile (`address(0x05)`), which is not supported on some chains, such as [Polygon zkEVM](https://www.rollup.codes/polygon-zkevm#precompiled-contracts). This library will not work on such chains, unless they support the RIP-7212 precompile.
Code excerpts

```solidity
Expand Down

0 comments on commit 619f20a

Please sign in to comment.