tendermint / go-amino

Protobuf3 with Interface support - Designed for blockchains (deterministic, upgradeable, fast, and compact)
Other
260 stars 78 forks source link

Expose (and document) an amino.(Binary/Json)Marshaller interface #250

Open liamsi opened 5 years ago

liamsi commented 5 years ago

It is possible to write custom (un)marshallers in amino. This isn't documented, neither is there an interface that clarifies which methods need to be implemented (an equivalent of https://golang.org/pkg/encoding/json/#Marshaler for).