Skip to content

Commit ede1fec

Browse files
committed
Formatting
1 parent 77187ef commit ede1fec

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

src/NetMQ/NetMQCertificate.cs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private string Z85Encode(byte[] data)
6161
/// </summary>
6262
/// <param name="key">key in Z85 format</param>
6363
/// <exception cref="ArgumentException">If key in invalid</exception>
64-
byte[] Z85Decode(string key)
64+
private byte[] Z85Decode(string key)
6565
{
6666
UInt32 char_nbr = 0;
6767
UInt32 value = 0;
@@ -252,7 +252,7 @@ public static NetMQCertificate FromPublicKey(string publicKey)
252252

253253

254254
/// <summary>
255-
/// Curve Public key
255+
/// Curve Secret key, encoded.
256256
/// </summary>
257257
public string? SecretKeyZ85 => SecretKey != null ? Z85Encode(SecretKey) : null;
258258

@@ -263,16 +263,13 @@ public static NetMQCertificate FromPublicKey(string publicKey)
263263
public bool HasSecretKey => SecretKey != null;
264264

265265
/// <summary>
266-
/// Curve Public key
266+
/// Curve Public key.
267267
/// </summary>
268268
public byte[] PublicKey { get; private set; }
269269

270270
/// <summary>
271-
/// Curve Public key
271+
/// Curve Public key, encoded.
272272
/// </summary>
273-
public string PublicKeyZ85
274-
{
275-
get => Z85Encode(PublicKey);
276-
}
273+
public string PublicKeyZ85 => Z85Encode(PublicKey);
277274
}
278275
}

src/NetMQ/OutgoingSocketExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,12 +695,13 @@ public static bool TrySendFrame(this IOutgoingSocket socket, TimeSpan timeout, R
695695
public static IOutgoingSocket SendEmptyRoutingKeys(this IOutgoingSocket socket)
696696
{
697697
return socket.SendMoreFrameEmpty();
698-
}
698+
}
699699

700700
/// <summary>
701701
/// Send a single routing key over <paramref name="socket"/>, append an empty message afterwards.
702702
/// </summary>
703703
/// <param name="socket">the IOutgoingSocket to transmit on</param>
704+
/// <param name="routingKeys">the routing keys to send</param>
704705
public static IOutgoingSocket SendRoutingKeys(this IOutgoingSocket socket, params RoutingKey[] routingKeys)
705706
{
706707
foreach(var routingKey in routingKeys)

0 commit comments

Comments
 (0)