Skip to content

Commit 7fa3206

Browse files
author
Jesper Glintborg
committed
Fixed spelling issue.
1 parent 902f246 commit 7fa3206

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/NetMQ.Tests/NetMQCertificateTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ public void X85()
1212
for (int i = 0; i < 1000; i++)
1313
{
1414
var key = new NetMQCertificate();
15-
var copy = new NetMQCertificate(key.SecretKeyX85, key.PublicKeyX85);
15+
var copy = new NetMQCertificate(key.SecretKeyZ85, key.PublicKeyZ85);
1616

17-
Assert.Equal(key.SecretKeyX85, copy.SecretKeyX85);
18-
Assert.Equal(key.PublicKeyX85, copy.PublicKeyX85);
17+
Assert.Equal(key.SecretKeyZ85, copy.SecretKeyZ85);
18+
Assert.Equal(key.PublicKeyZ85, copy.PublicKeyZ85);
1919

2020
Assert.Equal(key.SecretKey, copy.SecretKey);
2121
Assert.Equal(key.PublicKey, copy.PublicKey);

src/NetMQ/NetMQCertificate.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public static NetMQCertificate FromPublicKey(string publicKey)
247247
/// <summary>
248248
/// Curve Public key
249249
/// </summary>
250-
public string SecretKeyX85 => SecretKey != null ? Z85Encode(SecretKey) : null;
250+
public string SecretKeyZ85 => SecretKey != null ? Z85Encode(SecretKey) : null;
251251

252252

253253
/// <summary>
@@ -263,7 +263,7 @@ public static NetMQCertificate FromPublicKey(string publicKey)
263263
/// <summary>
264264
/// Curve Public key
265265
/// </summary>
266-
public string PublicKeyX85
266+
public string PublicKeyZ85
267267
{
268268
get => Z85Encode(PublicKey);
269269
}

0 commit comments

Comments
 (0)