Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

rif-id-core RequestedCredentials should save hash returned by server #57

Open
jessgusclark opened this issue Sep 23, 2020 · 0 comments
Open

Comments

@jessgusclark
Copy link
Member

The hash created by the server to hold the Requested Credential request should be saved into the reducer and database. For now, the hash can be retrieved with this:

const getHashByRequestId = (id: string) =>
  dbConnection.then(connection =>
    findOneCredentialRequest(connection, id)
      .then(response => (keccak256(response.message.raw) as any).toString('hex'))
      .catch(err => console.log('hash error', err)),
  );
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant