The encrypt-data and decrypt-data command are only used in DEP(Data Exchange Protocol). But for now, the commands are located in root panacead command. Also, the users are now need to get a datahash of provided data by using sha256sum manually. It could cause a providing same data which is not following canonical JSON format.
Implementation
Add a dep command and placed the encrypt-data and decrypt-data command under dep command. Add a panacead dep hash-data ... command for provider to get a unique datahash of provided data.
As a result, the commands will be:
Background
The
encrypt-data
anddecrypt-data
command are only used in DEP(Data Exchange Protocol). But for now, the commands are located in rootpanacead
command. Also, the users are now need to get adatahash
of provided data by usingsha256sum
manually. It could cause a providing same data which is not following canonical JSON format.Implementation
Add a
dep
command and placed theencrypt-data
anddecrypt-data
command underdep
command. Add apanacead dep hash-data ...
command for provider to get a unique datahash of provided data. As a result, the commands will be:panacead dep encrypt-data ...
panacead dep decrypt-data ...
panacead dep hash-data ...