MCPcopy
hub / github.com/smallstep/cli / publicKey

Function publicKey

command/crypto/jwt/verify.go:111–116  ·  view source on GitHub ↗

Get the public key for a JWK.

(jwk *jose.JSONWebKey)

Source from the content-addressed store, hash-verified

109
110// Get the public key for a JWK.
111func publicKey(jwk *jose.JSONWebKey) interface{} {
112 if jose.IsSymmetric(jwk) {
113 return jwk.Key
114 }
115 return jwk.Public().Key
116}
117
118func verifyAction(ctx *cli.Context) error {
119 token, err := utils.ReadString(os.Stdin)

Callers 1

verifyActionFunction · 0.70

Calls 1

PublicMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…