Closed FrankC01 closed 3 years ago
In rust you can use Accumulator::try_from(&data). It will fail if you just pass it two bytes as it expects as many bytes as the size of the modulus. I believe the minimum secure size is 256 bytes.
So the only value I get via wasm is the value
BigInteger.
The try_from
expects 804 bytes as it assumes that the generator
, value
, modulus
and member_count
are part of the vector respectively.
I would add the generator and modulus to your data. Those are essential elements to the accumulator
I receive, via 'wasm' a serialized array of bytes (big endian) representing a BigInteger value. E.g.
[1u8, 0u8]
I am trying to create an Accumulator with that value as the starting state. I have this so far:
is this possible?