use of co.rsk.bitcoinj.wallet.RedeemData in project rskj by rsksmart.
the class PegTestUtils method createBaseInputScriptThatSpendsFromTheFederation.
public static Script createBaseInputScriptThatSpendsFromTheFederation(Federation federation) {
Script scriptPubKey = federation.getP2SHScript();
Script redeemScript = createBaseRedeemScriptThatSpendsFromTheFederation(federation);
RedeemData redeemData = RedeemData.of(federation.getPublicKeys(), redeemScript);
Script inputScript = scriptPubKey.createEmptyInputScript(redeemData.keys.get(0), redeemData.redeemScript);
return inputScript;
}
Aggregations