Add-ish support for tags and mentions in new messages
Some checks failed
/ docker (push) Has been cancelled
Some checks failed
/ docker (push) Has been cancelled
This commit is contained in:
parent
94106bb82f
commit
b0f041e7b0
14 changed files with 242 additions and 53 deletions
|
@ -21,6 +21,9 @@ func GenerateKeypair(useEd bool) (publicKey []byte, privateKey []byte, err error
|
|||
return nil, nil, err
|
||||
}
|
||||
publicKeyBytes, err := x509.MarshalPKIXPublicKey(publicKey)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
return publicKeyBytes, privateKey, nil
|
||||
|
||||
} else {
|
||||
|
|
|
@ -33,7 +33,7 @@ func TestGenerateKeypairRSA(t *testing.T) {
|
|||
t.Fatalf("validation of private key failed: %v", err)
|
||||
}
|
||||
genPublicRaw := private.Public()
|
||||
genPublic, ok := genPublicRaw.(*rsa.PublicKey)
|
||||
genPublic, _ := genPublicRaw.(*rsa.PublicKey)
|
||||
if !reflect.DeepEqual(*public, *genPublic) {
|
||||
t.Fatal("public from generator and from private are different")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue