Closed aszepieniec closed 1 year ago
This PR introduces two new methods on trait TasmObject:
TasmObject
decode_iter
Iterator
BFieldElement
Self
decode_from_memory
HashMap<BFieldElement,BFieldElement>
To enable this interface extension:
derive
MemoryIter
This PR introduces two new methods on trait
TasmObject
:decode_iter
takes anIterator
overBFieldElement
s and decodes it as aSelf
.decode_from_memory
takes a memory (asHashMap<BFieldElement,BFieldElement>
) and address (asBFieldElement
) and decodes the object located there.To enable this interface extension:
derive
macro is modifiedMemoryIter
is introduced; it converts a memory and address pair into an iterator overBFieldElement
s.