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

Derive attestation key and use it to attest to generated witness ID #253

Merged
merged 5 commits into from
Mar 7, 2024

Conversation

AlCutter
Copy link
Collaborator

@AlCutter AlCutter commented Mar 5, 2024

This PR adds applet support for deriving a stable ID attestation key, and using it to create a simple attestation for witness IDs.

Note that this is a breaking change for witness identities, since we've modified the Witness ID diversifer string.

Example attestation:

ArmoredWitness ID attestation v1
90CC4E61D7A1162E
0
DEV:ArmoredWitness-withered-bush+3cc2d876+AcZNklun5fEn9VcsYgCDefdb4pDBd35qY70RfLGmsr2D

— DEV:AW-ID-Attestation-90CC4E61D7A1162E TLWjNc98n9Vk+I9mlfUDgfSBpjkgEb/44yOKOvQFjzNk3en1xXRLrQp7iKivpI5eqdBwNhXlrKDAY6HEFlr2jE0a6gM=

@AlCutter AlCutter requested a review from mhutchinson March 7, 2024 12:45
@AlCutter AlCutter marked this pull request as ready for review March 7, 2024 12:45
@AlCutter
Copy link
Collaborator Author

AlCutter commented Mar 7, 2024

Happy with the key name, or should it just be AW-<serial> or similar?

trusted_applet/key.go Show resolved Hide resolved
trusted_applet/key.go Show resolved Hide resolved
status.Serial,
status.HAB,
func(rnd io.Reader) string {
return fmt.Sprintf("%sArmoredWitness-%s", prefix, randomName(rnd))
})

attestPublicKey, witnessPublicKeyAttestation = attestID(&status, witnessPublicKey)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the function name be changed from deriveWitnessKey to deriveKeys ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah, seems reasonable - I've gone with deriveIdentityKeys to be clearer still.

@mhutchinson
Copy link
Contributor

Happy with the key name, or should it just be AW-<serial> or similar?

Key name is fine with me. I don't think we need to be terse.

@AlCutter AlCutter merged commit 3b5617e into transparency-dev:main Mar 7, 2024
3 checks passed
@AlCutter AlCutter deleted the derive_attest branch March 7, 2024 14:19
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.

2 participants