Script function ( @ Nullable TransactionSignature arg0 , ECKey arg1 ) { byte [ ] loc0 = arg1 . getPubKey ( ) ; byte [ ] loc1 = arg0 != null ? arg0 . encodeToBitcoin ( ) : new byte [ ] { } ; return new ScriptBuilder ( ) . data ( loc1 ) . data ( loc0 ) . build ( ) ; }
creates a scriptsig that can redeem a pay-to-address output . if given signature is null , incomplete scriptsig will be created with op_0 instead of signature concode_field_sep List<ScriptChunk> chunks concode_field_sep ScriptBuilder op concode_elem_sep ScriptBuilder op concode_elem_sep Script updateScriptWithSignature concode_elem_sep Script createOpReturnScript concode_elem_sep ScriptBuilder data concode_elem_sep ScriptBuilder data concode_elem_sep Script createMultiSigInputScriptBytes concode_elem_sep Script createMultiSigInputScriptBytes concode_elem_sep ScriptBuilder smallNum concode_elem_sep ScriptBuilder smallNum concode_elem_sep Script createRedeemScript concode_elem_sep ScriptBuilder addChunk concode_elem_sep ScriptBuilder addChunk concode_elem_sep Script createOutputScript concode_elem_sep Script createOutputScript concode_elem_sep Script createMultiSigInputScript concode_elem_sep Script createMultiSigInputScript concode_elem_sep Script createMultiSigOutputScript concode_elem_sep Script build concode_elem_sep Script createP2SHMultiSigInputScript concode_elem_sep Script createP2SHOutputScript concode_elem_sep Script createP2SHOutputScript concode_elem_sep Script createP2SHOutputScript