Skip to content

v0.17.0

Compare
Choose a tag to compare
@tjwelde tjwelde released this 15 Jan 13:05
· 979 commits to develop since this release

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.

Features

  • added signature/verification features to the DID Document… (#219) (4346619)

Bug Fixes

  • empty address was decoded to string representation (#218) (458f10f)