public BlindSignRequest(BlsKeyPair secretKey, BbsKeyPair publicKey, byte[] commitment, IndexedMessage[] messages) { SecretKey = secretKey ?? throw new ArgumentNullException(nameof(secretKey)); PublicKey = publicKey ?? throw new ArgumentNullException(nameof(publicKey)); Commitment = commitment ?? throw new ArgumentNullException(nameof(commitment)); Messages = messages ?? throw new ArgumentNullException(nameof(messages)); }
/// <summary> /// Initializes a new instance of the <see cref="VerifyRequest"/> class. /// </summary> /// <param name="keyPair">The key pair.</param> /// <param name="signature">The signature.</param> /// <param name="messages">The messages.</param> /// <exception cref="ArgumentNullException"> /// keyPair /// or /// signature /// or /// messages /// </exception> public VerifyRequest(BlsKeyPair keyPair, byte[] signature, string[] messages) { KeyPair = keyPair ?? throw new ArgumentNullException(nameof(keyPair)); Signature = signature ?? throw new ArgumentNullException(nameof(signature)); Messages = messages ?? throw new ArgumentNullException(nameof(messages)); }