You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Currently,
Smt
only supports values of typeWord
. It would be helpful to allow any type that basically wraps aWord
(i.e. implementsAsRef<Word>
), so that we can use any methods on such type.For example, in
miden-node
, we have anSmt
for nullifiers. We would like to create a typestruct NullifierValue(Word)
which supports converting to/fromBlockNum
. We currently cannot implement such type, because we are forced to storeWord
s in theSmt
. See comment.The text was updated successfully, but these errors were encountered: