public CommonCoin( CoinId coinId, IPublicConsensusKeySet wallet, PrivateKeyShare privateKeyShare, IConsensusBroadcaster broadcaster ) : base(wallet, coinId, broadcaster) { _coinId = coinId ?? throw new ArgumentNullException(nameof(coinId)); _thresholdSigner = new ThresholdSigner( _coinId.ToBytes(), privateKeyShare, wallet.ThresholdSignaturePublicKeySet ); _result = null; }
public bool Equals(CoinId other) { return(Era == other.Era && Agreement == other.Agreement && Epoch == other.Epoch); }