Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Verifiers to TxDetail #56

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

emmanueldenloye
Copy link
Contributor

add _txDetail_verifiers field

add _txDetail_verifiers field
@@ -49,6 +49,7 @@ data TxDetail = TxDetail
, _txDetail_previousSteps :: Maybe [Text]
, _txDetail_signers :: [Signer]
, _txDetail_sigs :: [Sig]
, _txDetail_verifiers :: Maybe Value
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can do better than this. These verifiers are conceptually similar to signers, so we probably need a Verifier data type and a database table to go with it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While we could indeed consider adding verifiers as a new column to the transactions table, I think there's good reason to keep it in a separate table like the signers table, because there can be multiple verifiers in a given transaction and if one wanted to index by, say, the verifier name, that would be impossible to do via the transactions table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants