Skip to content
Snippets Groups Projects
Commit e4d89e47 authored by Josh Brooks's avatar Josh Brooks
Browse files

Fix tests

parent 8d6986eb
No related branches found
No related tags found
1 merge request!58Draft: Projects/crust RELEASE
......@@ -13,6 +13,7 @@ import (
"gitlab.com/elixxir/crypto/partnerships/crust"
"gitlab.com/elixxir/user-discovery-bot/banned"
"gitlab.com/elixxir/user-discovery-bot/storage"
"gitlab.com/xx_network/crypto/signature/rsa"
"gitlab.com/xx_network/primitives/ndf"
"testing"
"time"
......@@ -62,8 +63,10 @@ func TestValidateUsername(t *testing.T) {
t.Fatalf("Failed to validate username: %+v", err)
}
clientPubKey, _ := rsa.LoadPublicKeyFromPem(pubKeyPem)
err = crust.VerifyVerificationSignature(rsaPrivKey.GetPublic(),
username, pubKeyPem, validationResponse.Signature)
crust.HashUsername(username), clientPubKey, validationResponse.Signature)
if err != nil {
t.Fatalf("validateUsername did not return a valid signature!")
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment