Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

dragan2234/rust_verkle_crypto_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED

Please refer to https://github.com/crate-crypto/rust-verkle/tree/ce90fa1c959acfca98d8ae82fb8591f289d4d1da/ffi_interface for newer and optimized verkle cryptography API.


Rust-verkle cryptography API inspired by https://hackmd.io/@6iQDuIePQjyYBqDChYw_jg/H1xXvMatq

Every method expects raw bytes and return raw bytes so it can be used in FFI calls.

Exposes 4 methods enough for computing root_hash of the trie and tested against https://github.com/ethereum/go-verkle. It doesn't use proper multi_scalar_mul call so it's not yet performant enough - optimizations are needed:

  • exposed_pedersen_hash
  • exposed_pedersen_commit_to_fr
  • exposed_pedersen_commit_to_element
  • exposed_group_to_field

Exposes 2 more methods for generating the proof and verifying:

  • exposed_prove_call
  • exposed_verify_call

And 1 method for updating the commitment

  • exposed_update_commitment

These are still in progress

About

[DEPRECATED] Rust-verkle cryptography API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages