Use expression body for constructor
MODIFY
WalletWasabi/Crypto/Slip21Node.cs
WalletWasabi/Crypto/Slip21Node.cs
@@ -11,10 +11,12 @@ namespace WalletWasabi.Crypto
private static readonly int KEY_SIZE = 32;
private byte[] _data;
- public Slip21Node(byte[] data) =>
+ public Slip21Node(byte[] data)
+ {
_data = data.Length == 64
? data
: throw new ArgumentException("The data array has to be 64 bytes long.", nameof(data));
+ }
public Key Key => new(_data[KEY_SIZE..]);

Use expression body for constructor