use of co.rsk.peg.fastbridge.FastBridgeFederationInformation in project rskj by rsksmart.
the class BridgeSupport method createFastBridgeFederationInformation.
protected FastBridgeFederationInformation createFastBridgeFederationInformation(Keccak256 fastBridgeDerivationHash) {
Script fastBridgeScript = FastBridgeRedeemScriptParser.createMultiSigFastBridgeRedeemScript(getActiveFederation().getRedeemScript(), Sha256Hash.wrap(fastBridgeDerivationHash.getBytes()));
Script fastBridgeScriptHash = ScriptBuilder.createP2SHOutputScript(fastBridgeScript);
return new FastBridgeFederationInformation(fastBridgeDerivationHash, getActiveFederation().getP2SHScript().getPubKeyHash(), fastBridgeScriptHash.getPubKeyHash());
}
Aggregations