Skip to content

get-smooth/crypto-lib

Repository files navigation

SmoothCryptoLib (SCL)

A Cryptographic Library for Smooth Blockchain uses.

Source

Solidity (onchain Contracts)

On chain contracts are available here.

Javascript (front code)

Source code for front is available here.

What can I do with SCL:

  • Integrate Passkey on any chain using RIP7696/RIP7212 contracts.
  • Delegate with 7702 to any curve instead of k1, using RIP7696.
  • Deploy a multisig account, where the governance is kept offchain using Musig2, either on curve k1 (compatibility with BIP327) or ed25519 (Cosmos/Solana).

Audits

Solidity

The results of the completed audits are in the doc/audit folder.

Team branch Target status Residual risks
CryptoExperts CryptoExperts P256 Completed 0
Veridise Veridise P256, Ed25519 Completed 0
Formal Land Veridise RIP7696 Partial Proving 0

CryptoExperts and Veridise audits consisted in human auditing of the code. Formal Land conducted a partial formal verification of the code. Due to its mathematical complexity, the perimeter was restricted to ecAddn2, ecDblNeg and scalar extraction. See here for the coq proof of the library.

We are also grateful to Guido (https://github.com/guidovranken) which notice by its independant (and amazing) Fuzzing work that our weak keys testing was incorrect.

Javascript

Code hasn't been audited and is delivered for experiments purposes only. Do not use in production.

Acknowledments

The following work has been half-funded by the Ethereum Fundation grant number FY24-1386:

  • ed25519 solidity (libSCL_RIP6565.sol )
  • Formal Verification is hosted on Formal Land repo.
  • libMPC
    • SCL_Musig2.mjs over secp256K1 and ed25519.

SCL is build by the same team of the previous FCL.

Our work in Production

Prior to SCL implementation, our experimental library FCL is still in production in various environments:

License

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

About

A Cryptographic Library for Smooth Blockchain uses

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published