Hashing and Serializing in Ozmyum
Introduction I’ve been working on Ozmyum, my immutable architecture library inspired by the excellent work of Michael Perry in jinaga and his book, The Art of Immutable Architecture. Hashing Facts One of Perry’s recommendations for an immutable system is that a “Fact” - an atomic, immutable representation of some change - is referenced by a hash. Every fact with the same data and type is the same fact, so the hash should reflect that. The strategy recommended in the book (and used in Jinaga) is a canonicalized json format, hashed with sha-256 or the like. ...