iota.js icon indicating copy to clipboard operation
iota.js copied to clipboard

Implement syntactic checks

Open lzpap opened this issue 2 years ago • 1 comments

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.

lzpap avatar Jul 11 '22 13:07 lzpap

This needs to be split to smaller tasks.

msarcev avatar Sep 12 '22 13:09 msarcev

Left to do:

  • Expose all the needed validation functions
  • Add the entrypoint logic for validation
  • Review the code

msarcev avatar Nov 21 '22 12:11 msarcev

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

brancoder avatar Nov 23 '22 12:11 brancoder