-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
Happy with the key name, or should it just be |
status.Serial, | ||
status.HAB, | ||
func(rnd io.Reader) string { | ||
return fmt.Sprintf("%sArmoredWitness-%s", prefix, randomName(rnd)) | ||
}) | ||
|
||
attestPublicKey, witnessPublicKeyAttestation = attestID(&status, witnessPublicKey) |
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.
Should the function name be changed from deriveWitnessKey
to deriveKeys
?
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.
yeah, seems reasonable - I've gone with deriveIdentityKeys
to be clearer still.
Key name is fine with me. I don't think we need to be terse. |
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: