Add basic key registration

This commit is contained in:
cheddar 2025-02-17 20:50:48 -05:00
parent 3dfe5b8558
commit 949d1fc2ad
No known key found for this signature in database
6 changed files with 138 additions and 55 deletions

View file

@ -0,0 +1,12 @@
package keydirectory
import (
"crypto"
"github.com/common-fate/httpsig/verifier"
)
type RegistrationDirectory interface {
verifier.KeyDirectory
RegisterKey(key crypto.PublicKey, alg string, userId string) (string, error)
}