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

Smt and SimpleSmt: Make generic over T: AsRef<Word> #288

Open
plafer opened this issue Mar 8, 2024 · 0 comments
Open

Smt and SimpleSmt: Make generic over T: AsRef<Word> #288

plafer opened this issue Mar 8, 2024 · 0 comments

Comments

@plafer
Copy link
Contributor

plafer commented Mar 8, 2024

Currently, Smt only supports values of type Word. It would be helpful to allow any type that basically wraps a Word (i.e. implements AsRef<Word>), so that we can use any methods on such type.

For example, in miden-node, we have an Smt for nullifiers. We would like to create a type struct NullifierValue(Word) which supports converting to/from BlockNum. We currently cannot implement such type, because we are forced to store Words in the Smt. See comment.

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