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

Function publicKey

command/crypto/jws/verify.go:83–88  ·  view source on GitHub ↗

Get the public key for a JWK.

(jwk *jose.JSONWebKey)

Source from the content-addressed store, hash-verified

81
82// Get the public key for a JWK.
83func publicKey(jwk *jose.JSONWebKey) interface{} {
84 if jose.IsSymmetric(jwk) {
85 return jwk.Key
86 }
87 return jwk.Public().Key
88}
89
90func verifyAction(ctx *cli.Context) error {
91 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…