The current representation is as follows:
pubenumJws{General(General),Flattened(Flattened),}pubstructGeneral{pubpayload:Option<Bytes>,pubsignatures:Vec<Signature>,}pubstructFlattened{pubpayload:Option<Bytes>,pubsignature:Signature,}It seems a bit unusual to define general vs. flattened at the top level since it's only relevant for signatures. It seems like maybe something like this would work a bit better:
pubenumJws{pub payload:Option<Bytes>,pub signatures:SomeSignatureEnum,}enumSomeSignatureEnum{Flattened(Signature),General(Vec<Signature>)}And this would at least make it easier to work with payload without needing to branch on General/Flattened.
Just curious what thoughts are here
Related: #22
The current representation is as follows:
It seems a bit unusual to define general vs. flattened at the top level since it's only relevant for signatures. It seems like maybe something like this would work a bit better:
And this would at least make it easier to work with
payloadwithout needing to branch on General/Flattened.Just curious what thoughts are here
Related: #22