This repository has been archived by the owner on Jan 4, 2022. It is now read-only.
Dash Platform Protocol v0.16.0
Features
- use Buffers for binary data (#238, #240, #241, #246, #247, #261, #262, #263, #266)
- Identifier property type (#252, #265, #267, #268)
byteArray
JSON Schema keyword instead ofcontentEncoding
(#245, #248, #251, #254, #260)- use 32 random bytes instead of blockchain address for entropy (#250, #259)
- validate and store all identity keys instead of the first one (#234, #237, #242)
- validate document upon creation (#255)
- hash methods responds with Buffer (#249)
- introduce a BLS identity key type (#239)
- add revision property to identity (#235)
isEnabled
property removed from Identity Public Key (#236)
BREAKING CHANGES
- Node.JS 10 and lower are not supported
- data models use Buffers instead of strings for binary fields
serialize
methods renamed totoBuffer
createFromSerialized
methods renamed tocreateFromBuffer
StateRepository
acceptIdentifier
andBuffer
instead of strings- identifiers like document, data contract and identity IDs are instances
Identifier
(compatible withBuffer
) contentEncoding
keyword isn't supported anymore. UsebyteArray: true
withtype: array
to store binary data- Data Contract and Document entropy is now a random 32 bytes instead of blockchain address
- identity and identity create transition can't contain duplicate public keys anymore
DocumentFactory#create
throws an error if specified data is not validhash
methods respond withBuffer
instead of hex encoded string- ECDSA Public key (type
0
) must be a 33 long byte array. - Identity's
revision
is required - Identity Public Key's
isEnabled
is not accepted - Data created or serialized by previous is incompatible