MCPcopy
hub / github.com/golang-jwt/jwt / LoadECPublicKeyFromDisk

Function LoadECPublicKeyFromDisk

test/helpers.go:59–69  ·  view source on GitHub ↗
(location string)

Source from the content-addressed store, hash-verified

57}
58
59func LoadECPublicKeyFromDisk(location string) crypto.PublicKey {
60 keyData, e := os.ReadFile(location)
61 if e != nil {
62 panic(e.Error())
63 }
64 key, e := jwt.ParseECPublicKeyFromPEM(keyData)
65 if e != nil {
66 panic(e.Error())
67 }
68 return key
69}

Callers 1

initFunction · 0.92

Calls 1

ErrorMethod · 0.80

Tested by 1

initFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…