issue #52 is addressed by switching from the hard coded registry values to the issuer-registry-client library.
issue #45 is addressed by adding a check to see if a proof field is in the credential. This fix is implemented in a way that makes it easy to send a different message for each missing piece of a credential in the future.
Note: A big part of these fixes is sending a error back to the display page. This is done with a mostly static error object that contains some hard coded data that in theory should be changed.
This pr addresses issues #52 and #45.
issue #52 is addressed by switching from the hard coded registry values to the issuer-registry-client library.
issue #45 is addressed by adding a check to see if a proof field is in the credential. This fix is implemented in a way that makes it easy to send a different message for each missing piece of a credential in the future.
Note: A big part of these fixes is sending a error back to the display page. This is done with a mostly static error object that contains some hard coded data that in theory should be changed.