src/Stratis.FederatedPeg.Tests/CrossChainTestBase.cs
/// <summary>
/// Chooses the key we use.
/// </summary>
/// <param name="keyNum">The key number.</param>
Chooses the key we use.
Chooses the key we use .
protected void SetExtendedKey(int keyNum)
        {
            this.extendedKey = this.federationKeys[keyNum];
            this.federationGatewaySettings.IsMainChain.Returns(false);
            this.federationGatewaySettings.MultiSigRedeemScript.Returns(this.redeemScript);
            this.federationGatewaySettings.MultiSigAddress.Returns(this.redeemScript.Hash.GetAddress(this.network));
            this.federationGatewaySettings.PublicKey.Returns(this.extendedKey.PrivateKey.PubKey.ToHex());
            this.withdrawalExtractor = new WithdrawalExtractor(this.loggerFactory, this.federationGatewaySettings, this.opReturnDataReader, this.network);
        }
protected void SetExtendedKey ( int keyNum ) { this . extendedKey = this . federationKeys [ keyNum ] ; this . federationGatewaySettings . IsMainChain . Returns ( false ) ; this . federationGatewaySettings . MultiSigRedeemScript . Returns ( this . redeemScript ) ; this . federationGatewaySettings . MultiSigAddress . Returns ( this . redeemScript . Hash . GetAddress ( this . network ) ) ; this . federationGatewaySettings . PublicKey . Returns ( this . extendedKey . PrivateKey . PubKey . ToHex ( ) ) ; this . withdrawalExtractor = new WithdrawalExtractor ( this . loggerFactory , this . federationGatewaySettings , this . opReturnDataReader , this . network ) ; }
Chooses the key we use.
Chooses the key we use .
keyNum
int
The key number.
The key number .