MCPcopy Index your code
hub / github.com/coder/coder / VerifyingKey

Method VerifyingKey

coderd/cryptokeys/cache.go:54–54  ·  view source on GitHub ↗

VerifyingKey returns the key with the provided id which should map to its sequence number. The key is valid for verifying as long as it is not deleted or past its deletion date. We must allow for keys prior to their start time to account for clock skew between peers (one key may be past its start ti

(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

52 // to account for clock skew between peers (one key may be past its start time
53 // on one machine while another is not).
54 VerifyingKey(ctx context.Context, id string) (key interface{}, err error)
55 io.Closer
56}
57

Callers 1

TestCryptoKeyCacheFunction · 0.65

Implementers 3

keycoderd/jwtutils/jwt_test.go
StaticKeycoderd/jwtutils/jws.go
cachecoderd/cryptokeys/cache.go

Calls

no outgoing calls

Tested by 1

TestCryptoKeyCacheFunction · 0.52