nervosnetwork / molecule

Another serialization system: minimalist and canonicalization.
MIT License
36 stars 23 forks source link

[Question] How to leave a field open for future definition? #91

Open phroi opened 5 months ago

phroi commented 5 months ago

Hello Cryptape, iCKB here 👋

As per title, I'm wondering: How to leave in a molecule schema a field open for future definition?

Usually I see a definition based on vector, but implies at least a 4 bytes used as header:

vector Bytes <byte>

I'd like to use something based on arrays, so no header, like the following, but of course it's invalid:

array Bytes [byte; ...]

As usual I'm asking here since GitHub issues are SEO friendly and very likely in the future there will be other L1 developers wondering the same :wink:

Keep up the Great Work, Phroia