dashevo / js-dpp

DEPRECATED The JavaScript implementation of the Dash Platform Protocol
MIT License
8 stars 8 forks source link

feat!: prepend protocol version for binary format #325

Closed shuplenkov closed 3 years ago

shuplenkov commented 3 years ago

Issue being fixed or feature implemented

Need to move protocol version information out from encoded data and prepend the binary format. This allows to change the serialization format and keep backward compatibility.

What was done?

Modified toBuffer methods to encode data into new binary format.

How Has This Been Tested?

Unit tests

Breaking Changes

Previously serialized data is not compatible.

Checklist:

For repository code-owners and collaborators only