Should be in any order I think. There are some hardcoded test cases on nostr-tools and go-nostr repositories.
Have an early rust NIP-19 TLV decoder written for rust. Needs more test cases and likely to simplify areas. Better TLV flexibility for ordering likely needed.
https://gist.github.com/blakejakopovic/f084749a912b9fcab60128ef9c6c98c
#[0] do we have more test cases somewhere I can use? How flexible should TLV order be?
https://github.com/nbd-wtf/nostr-tools/blob/24f5068fdbc2d3fce2f00af00ce2d01ea83fe40b/nip26.test.js
Discussion
No replies yet.