Search in sources :

Example 1 with RedeemData

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;
}
Also used : Script(co.rsk.bitcoinj.script.Script) RedeemData(co.rsk.bitcoinj.wallet.RedeemData)

Aggregations

Script (co.rsk.bitcoinj.script.Script)1 RedeemData (co.rsk.bitcoinj.wallet.RedeemData)1