Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streamline hashing interface of Tip5 #239

Open
jan-ferdinand opened this issue Dec 2, 2024 · 0 comments
Open

Streamline hashing interface of Tip5 #239

jan-ferdinand opened this issue Dec 2, 2024 · 0 comments

Comments

@jan-ferdinand
Copy link
Member

jan-ferdinand commented Dec 2, 2024

Tip5 has the following functions for hashing:

pub fn hash_10(input: &[BFieldElement; 10]) -> [BFieldElement; Digest::LEN] {}
pub fn hash_pair(left: Digest, right: Digest) -> Digest {}
pub fn hash<T: BFieldCodec>(value: &T) -> Digest {}
pub fn hash_varlen(input: &[BFieldElement]) -> Digest {}

This feels somewhat excessive. Try to streamline the interface, or document the differences and each function's necessity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant