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 the TSM identity to Darc #2485

Merged
merged 3 commits into from
Feb 13, 2022
Merged

Add the TSM identity to Darc #2485

merged 3 commits into from
Feb 13, 2022

Conversation

ineiti
Copy link
Member

@ineiti ineiti commented Feb 11, 2022

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.

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.
@ineiti ineiti requested review from tharvik and cgrigis February 11, 2022 13:49
Copy link
Contributor

@tharvik tharvik left a 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

darc/darc.go Show resolved Hide resolved
darc/darc.go Outdated Show resolved Hide resolved
darc/darc.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@cgrigis cgrigis left a 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
Copy link
Collaborator

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?

Copy link
Member Author

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...

darc/darc.go Show resolved Hide resolved
darc/darc.go Outdated Show resolved Hide resolved
@@ -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:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nothing for DID?

Copy link
Member Author

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

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ineiti ineiti merged commit 03a0f3d into main Feb 13, 2022
@ineiti ineiti deleted the darc_tsm branch February 13, 2022 16:44
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