git.sr.ht/~pingoo/stdx@v0.0.0-20240218134121-094174641f6e/jst/keys.go (about) 1 package jst 2 3 import "fmt" 4 5 var ( 6 ErrKeyNotFound = func(keyId string) error { 7 return fmt.Errorf("key (%s) not found", keyId) 8 } 9 ) 10 11 type KeyProvider interface { 12 GetKey(keyId string) (key []byte, err error) 13 }