-
Notifications
You must be signed in to change notification settings - Fork 104
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 the TSM identity to Darc #2485
Conversation
The Trusted Secure Module is used by DuoKey to sign messages using a threshold signature scheme. This PR adds support for Darcs to verify those messages. It is used for the Master Thesis protject of Pilar Marxer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some cosmetics changes, otherwise LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments, I'll let you judge if they are relevant.
return true | ||
} | ||
return false | ||
return id.Type() != 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean identities other than Darc are always Primary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes - this is used to know which identities have counters. It should probably be renamed, but here I just thought it's useless to have this long switch/case
, when a simple test would do...
@@ -1120,6 +1187,8 @@ func ParseIdentity(in string) (Identity, error) { | |||
return parseIDProxy(fields[1]) | |||
case "evm_contract": | |||
return parseIDEvmContract(fields[1]) | |||
case "tsm": | |||
return parseIDTSM(fields[1]) | |||
default: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing for DID?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have an issue now: #2486
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
The Trusted Secure Module is used by DuoKey to sign messages using a threshold signature
scheme. This PR adds support for Darcs to verify those messages. It is used for the
Master Thesis protject of Pilar Marxer.