Add basic key registration
This commit is contained in:
parent
3dfe5b8558
commit
949d1fc2ad
6 changed files with 138 additions and 55 deletions
12
keydirectory/registration.go
Normal file
12
keydirectory/registration.go
Normal 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue