Skip to content

Commit

Permalink
Fixed spelling issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesper Glintborg committed Jul 12, 2020
1 parent 902f246 commit 7fa3206
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/NetMQ.Tests/NetMQCertificateTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ public void X85()
for (int i = 0; i < 1000; i++)
{
var key = new NetMQCertificate();
var copy = new NetMQCertificate(key.SecretKeyX85, key.PublicKeyX85);
var copy = new NetMQCertificate(key.SecretKeyZ85, key.PublicKeyZ85);

Assert.Equal(key.SecretKeyX85, copy.SecretKeyX85);
Assert.Equal(key.PublicKeyX85, copy.PublicKeyX85);
Assert.Equal(key.SecretKeyZ85, copy.SecretKeyZ85);
Assert.Equal(key.PublicKeyZ85, copy.PublicKeyZ85);

Assert.Equal(key.SecretKey, copy.SecretKey);
Assert.Equal(key.PublicKey, copy.PublicKey);
Expand Down
4 changes: 2 additions & 2 deletions src/NetMQ/NetMQCertificate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public static NetMQCertificate FromPublicKey(string publicKey)
/// <summary>
/// Curve Public key
/// </summary>
public string SecretKeyX85 => SecretKey != null ? Z85Encode(SecretKey) : null;
public string SecretKeyZ85 => SecretKey != null ? Z85Encode(SecretKey) : null;


/// <summary>
Expand All @@ -263,7 +263,7 @@ public static NetMQCertificate FromPublicKey(string publicKey)
/// <summary>
/// Curve Public key
/// </summary>
public string PublicKeyX85
public string PublicKeyZ85
{
get => Z85Encode(PublicKey);
}
Expand Down

0 comments on commit 7fa3206

Please sign in to comment.