mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-29 01:33:10 -06:00
Decorate key ID properly
This commit is contained in:
parent
e83f55063d
commit
98d5aac9c9
|
|
@ -448,6 +448,11 @@ func (a *KeyInternalAPI) processOtherSignatures(
|
|||
return fmt.Errorf("there are no signatures from uploading user %q", userID)
|
||||
}
|
||||
|
||||
// If the key ID is naked then we should add a scheme to it.
|
||||
if !strings.HasPrefix(string(targetKeyID), "ed25519:") {
|
||||
targetKeyID = "ed25519:" + targetKeyID
|
||||
}
|
||||
|
||||
for originKeyID, originSig := range sigs {
|
||||
if err := a.DB.StoreCrossSigningSigsForTarget(
|
||||
ctx, userID, originKeyID, targetUserID, targetKeyID, originSig,
|
||||
|
|
|
|||
Loading…
Reference in a new issue