iota.js
iota.js copied to clipboard
Implement syntactic checks
Description
Implement syntactic checks for blocks and payloads based on the TIPs. Such checks should be carried out before/after serializing/deserializing objects.
AFAIK iota.go implements it in a way that you can tell the serialization/deserialization function whether to perform syntactic checks during the operation.
Motivation
Catches syntactic errors on client side.
This needs to be split to smaller tasks.
Left to do:
- Expose all the needed validation functions
- Add the entrypoint logic for validation
- Review the code
https://github.com/iotaledger/iota.js/issues/929#issuecomment-1321993986
- Expose all the needed validation functions
- Add the entrypoint logic for validation
Resolved in PR https://github.com/iotaledger/iota.js/pull/1055