public void signTrans(string strmyPriKeyPath, string strmyPubkeyValue, int InputIndex) { string strRawdata = this.getRawDataToSign(InputIndex); listInputs[InputIndex].ScriptSig.Signature = Cryptor.rsaPriSign(strRawdata, strmyPriKeyPath); listInputs[InputIndex].ScriptSig.PubKey = strmyPubkeyValue; }
public void MultiSignTrans(string strmyPriKeyPath, string strmyPubkeyValue, int InputIndex) { string strRawdata = this.getRawDataToSign(InputIndex); scriptSig tempScriptSig = new scriptSig(); tempScriptSig.Signature = Cryptor.rsaPriSign(strRawdata, strmyPriKeyPath); tempScriptSig.PubKey = strmyPubkeyValue; listInputs[InputIndex].addMutiSignTolst(tempScriptSig); }
public void signTrans(string strmyPriKeyPath, string strmyPubkeyValue) { for (int i = 0; i < this.listInputs.Count; i++) { string strRawdata = this.getRawDataToSign(i); listInputs[i].ScriptSig.Signature = Cryptor.rsaPriSign(strRawdata, strmyPriKeyPath); listInputs[i].ScriptSig.PubKey = strmyPubkeyValue; } }
public void signTrans(string strmyPriKeyPath, string strmyPubkeyValue, int InputIndex) { string strRawdata = this.getRawDataToSign(InputIndex); scriptSig tempScriptSig = new scriptSig(); tempScriptSig.Signature = Cryptor.rsaPriSign(strRawdata, strmyPriKeyPath); tempScriptSig.PubKey = strmyPubkeyValue; // modified by fdp 190110 listInputs[InputIndex].addSignature(tempScriptSig); //listInputs[InputIndex].ScriptSig.Signature = Cryptor.rsaPriSign(strRawdata, strmyPriKeyPath); //listInputs[InputIndex].ScriptSig.PubKey = strmyPubkeyValue; }