Home

Awesome

Fresh Crypto Lib (FCL)

The Fresh Crypto Lib is a set of functions for blockchain systems such as Wallet, SmartContracts.

*** 15/05/24 : Deprecated

*** This library is an experimental prequel of SCL. SCL proposes more generic implementation with RIP7696 for lesser cost (beating record set by FCL) and is currently under audit. https://github.com/get-smooth/crypto-lib.

*** new (27/05/24): SCL now supports both Ed25519 and P256 using RIP7696.

*** new (06/08/24): SCL first audit completed, second VERIDISE audit being reviewed (FCL has no audit).

*** We warmly thanks all contributors of FCL, they will be added as contributor to SCL.

Content

The implemented content is:

Directory solidity:

<!--- FCL_ecdaa.sol: an EVM version of the ECDAA anonymous attestation for anonymous airdrops -->
PR #Create2MainnetsTestnets
460xE9399D1183a5cf9E14B120875A616b6E2bcB840aPolygonOptimism, Sepolia, Linea

(code is verified except for linea, one could check that bytecode is identical).

Directory cairo0.9:

<!---* FCL_cairo_secp : optimization of the ECDSA function over sec256r1, using starkware implementation with ec_mulmuladdW_sec256k1 (original implementation from Starkware commons here:https://github.com/https://github.com/starkware-libs/cairo-lang/tree/master/src/starkware/cairo/common/cairo_secp)--> <!---* FCL_cairo_secp256k1 : optimization of the ECDSA function over sec256k1 using ec_mulmuladdW_sec256r1 (original implementation from Cartridge here:https://github.com/cartridge-gg/cairo-secp256r1) --> <!---*FCL_musig2: Original implementation of the Schnorr verification algorithm. Please note that it is a custom implementation (cryptographically equivalent, but not identical to BlockStream implementation). Namely arbitrary domain separator, choice of hash, byte ordering and annoying little choices are not compatible with Musig2 BIP proposal.-->

Note : The language is now deprecated since its transition from python-like to rust-like language.

Directory sage:

Acknowledments:

Building Blocks

The following repos are used as building blocks in the FCL:

Benchmark

The following repos have been used in benchmarks:

Testing

FCL in the wild

Do not hesitate to reach us to be listed.

License

License: This software is licensed under MIT License (see LICENSE FILE at root directory of project).