public MixingLevel(Money denomination, SchnorrKey schnorrKey) { Denomination = Guard.NotNull(nameof(denomination), denomination); SchnorrKey = Guard.NotNull(nameof(schnorrKey), schnorrKey); Signer = SchnorrKey.CreateSigner(); }
public MixingLevel(Money denomination, Key signerKey, Key rKey) { Denomination = Guard.NotNull(nameof(denomination), denomination); signerKey = Guard.NotNull(nameof(signerKey), signerKey); rKey = Guard.NotNull(nameof(rKey), rKey); SchnorrKey = new SchnorrKey(signerKey, rKey); Signer = SchnorrKey.CreateSigner(); }
public MixingLevel(Money denomination, Signer signer) { Denomination = Guard.NotNull(nameof(denomination), denomination); Signer = Guard.NotNull(nameof(signer), signer); var signerKey = Guard.NotNull(nameof(signer.Key), signer.Key); var rKey = Guard.NotNull(nameof(signer.R), signer.R); SchnorrKey = new SchnorrKey(signerKey, rKey); }