v0.17.0
0.17.0 (2020-01-15)
Refactoring
refactor: Constructor and fromObject() | lodash dependency removal (#199) (f8fe82c)
Big Refactoring happened: We replaced all our fromObject
methods with constructors
and made new methods to initialize objects comfortably.
So instead of doing
const attestation = new Attestation(requestForAttestation, attester)
you now have to do
const attestation = Kilt.Attestation.fromRequestAndPublicIdentity(
requestForAttestation,
attester.getPublicIdentity()
);
For serialization, you can now do:
const serialized = JSON.stringify(attestation)
const deserialized = new Attestation(serialized)
instead of using fromObject
refactor: Splitting metadata from the schema (#211) (891fbc0)
This refactoring disconnects the ctype object from its metadata.
Before, you would have to add metadata in the constructor
of CType
, now you don't do that and use the new class CTypeMetadata
, where you just reference the corresponding ctype via ctypehash.
We also added a json-schema definition for those metadata objects.