symbol
symbol copied to clipboard
[sdk/python] Metadata - provide util to calculate delta (xor) value and delta length
Current Behaviour
Previous SDK when constructing Metadata (Namespace/Mosaic/Account) Transaction automatically calculated delta value and length based on on-chain metadata value fetched during Transaction creation.
New SDK is not doing network communication but would be nice to provide a helper or other way (additional field?) to provide previous value (which the user has to manually fetch from the network) and new value. It would calculate the correct delta value and delta length to put into the transaction.
Expected Behaviour
Provide util/helper or a way to pass previous value during Metadata Transaction creation. Based on that we could calculate:
- value (delta)
- value size
- value size delta
JS issue: #297