This is totally off-piste with regard to the specification, but so are many of the features we have in this repo. The encoding strategy here effectively treats a map[A]B as a []struct{a A; b B}, that is, as a sequence of key/value pairs. In order to be canonical, the encoder sorts the pairs lexically by key.
This is totally off-piste with regard to the specification, but so are many of the features we have in this repo. The encoding strategy here effectively treats a
map[A]B
as a[]struct{a A; b B}
, that is, as a sequence of key/value pairs. In order to be canonical, the encoder sorts the pairs lexically by key.