示例#1
0
 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;
 }
示例#2
0
文件: CoinId.cs 项目: LAToken/lachain
 public bool Equals(CoinId other)
 {
     return(Era == other.Era && Agreement == other.Agreement && Epoch == other.Epoch);
 }