Skip to content

Commit

Permalink
Update crypto.PublicKey documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Richey <joerichey@google.com>
  • Loading branch information
josephlr committed Jan 25, 2022
1 parent 738cc8c commit 151a1ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/verify.go
Expand Up @@ -123,7 +123,8 @@ func VerifyAttestation(attestation *pb.Attestation, opts VerifyOpts) (*pb.Machin
}

func pubKeysEqual(k1 crypto.PublicKey, k2 crypto.PublicKey) bool {
// Common interface for all public keys (see crypto.PublicKey documentation)
// Common interface for all the standard public key types, see:
// https://pkg.go.dev/crypto@go1.18beta1#PublicKey
type publicKey interface {
Equal(crypto.PublicKey) bool
}
Expand Down

0 comments on commit 151a1ec

Please sign in to comment.