Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 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;
     }
 }
Exemplo n.º 4
0
        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;
        }