hypersign-protocol / hid-node

A permissionless blockchain network to manage digital identity and access rights
https://hypersign.id
Apache License 2.0
223 stars 23 forks source link

fixed JSON-LD canonization; added `client` proto package to define governed constants for external clients #376

Closed arnabghose997 closed 10 months ago

arnabghose997 commented 10 months ago

JSON-LD canonization fix

The initial assumption of JSON-LD canonization was to only canonize the document (without proof attribute), hash the canonized string and sing it. However, the actual process involves canonizing proof attribute as well. The detailed flow can be referred here

client proto package.

Addresses: https://github.com/hypersign-protocol/hid-node/issues/375

The protocol supports selected Verification Method and Proof Types. In order to dictate these terms to external clients, such as SDK written is TS or any other language, client proto package was created to export enums for all the supported types. Refer the directory proto/ssi/client/enums.proto