Bitcoin Forum
May 12, 2024, 10:41:39 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Signing Transaction Failed ( 0,5 btc reward for fixing answer)  (Read 3108 times)
wesjuhnl (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
December 03, 2013, 08:01:27 PM
 #21

How does that private key look like?

Does it begin with 5 and have ~51 characters?

I recommend you to go to https://www.bitaddress.org/ choose tab "Wallet Details" and enter the private key you have.

Check if you can decode it there. If you can, try importing to a blockchain.info wallet what you get under "Private Key WIF".

If it still fails, let us know in what step and with what output.


Yes it start with a 5 an has 51 or 52 characters.

I went to bitadress.org put in private key in wallet details.

It says in private key wif all zero's

Btc: 1BxeYiGGk64tCsotMwVhepVcAfoRRsR81k

Ltc: LanjQbwLhYSQkQbyuy5KDCEP6bmakZJd2V

Yac: YN5gfrrgupTN76m787YfDf2GNVRvxR67Ge

Ftc: 6efpCJD7mkEe79U4gzq6oEsAvnZGJub1Dj
1715553699
Hero Member
*
Offline Offline

Posts: 1715553699

View Profile Personal Message (Offline)

Ignore
1715553699
Reply with quote  #2

1715553699
Report to moderator
1715553699
Hero Member
*
Offline Offline

Posts: 1715553699

View Profile Personal Message (Offline)

Ignore
1715553699
Reply with quote  #2

1715553699
Report to moderator
1715553699
Hero Member
*
Offline Offline

Posts: 1715553699

View Profile Personal Message (Offline)

Ignore
1715553699
Reply with quote  #2

1715553699
Report to moderator
The trust scores you see are subjective; they will change depending on who you have in your trust list.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715553699
Hero Member
*
Offline Offline

Posts: 1715553699

View Profile Personal Message (Offline)

Ignore
1715553699
Reply with quote  #2

1715553699
Report to moderator
EcuaMobi
Legendary
*
Offline Offline

Activity: 1862
Merit: 1469


https://Ecua.Mobi


View Profile WWW
December 03, 2013, 08:07:13 PM
 #22

Then I think there was some error while exporting that private key.

You should double check steps described by: Kouye
https://bitcointalk.org/index.php?topic=354762.msg3810656#msg3810656

Or try running this command before those described by him:
walletpassphrase "your walletpassphrase here" 600


wesjuhnl (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
December 03, 2013, 08:10:45 PM
 #23

Then I think there was some error while exporting that private key.

You should double check steps described by: Kouye
https://bitcointalk.org/index.php?topic=354762.msg3810656#msg3810656

Or try running this command before those described by him:
walletpassphrase "your walletpassphrase here" 600



I used walletpassphrase 600 before dumping the key.

Btc: 1BxeYiGGk64tCsotMwVhepVcAfoRRsR81k

Ltc: LanjQbwLhYSQkQbyuy5KDCEP6bmakZJd2V

Yac: YN5gfrrgupTN76m787YfDf2GNVRvxR67Ge

Ftc: 6efpCJD7mkEe79U4gzq6oEsAvnZGJub1Dj
wesjuhnl (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
December 04, 2013, 06:10:34 PM
 #24

Nobody ?

Guess 2.08 bitcoins waisted then..

Btc: 1BxeYiGGk64tCsotMwVhepVcAfoRRsR81k

Ltc: LanjQbwLhYSQkQbyuy5KDCEP6bmakZJd2V

Yac: YN5gfrrgupTN76m787YfDf2GNVRvxR67Ge

Ftc: 6efpCJD7mkEe79U4gzq6oEsAvnZGJub1Dj
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1078


Ian Knowles - CIYAM Lead Developer


View Profile WWW
December 04, 2013, 06:28:10 PM
 #25

Nobody ?

I think you are at the stage of needing to grep through the source to work out where that error comes from.

Possibly you might be looking at a corrupted wallet but you might want to check it out a little further before giving up.

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
Kouye
Sr. Member
****
Offline Offline

Activity: 336
Merit: 250


Cuddling, censored, unicorn-shaped troll.


View Profile
December 04, 2013, 06:38:33 PM
 #26

I sent a pm to jackjack pointing to this thread, hopefully he can help with NPW.
I'm not sure he'll have time or be willing, though, so don't expect too much.


[OVER] RIDDLES 2nd edition --- this was claimed. Look out for 3rd edition!
I won't ever ask for a loan nor offer any escrow service. If I do, please consider my account as hacked.
Mitchell
Copper Member
Legendary
*
Offline Offline

Activity: 3920
Merit: 2198


Verified awesomeness ✔


View Profile WWW
December 04, 2013, 06:45:21 PM
 #27

This is one interesting case. An exported private key that cannot be imported and a wallet that doesn't sign, that does sound like a corrupted wallet. Going to follow this.

.
Duelbits
            ▄████▄▄
          ▄█████████▄
        ▄█████████████▄
     ▄██████████████████▄
   ▄████▄▄▄█████████▄▄▄███▄
 ▄████▐▀▄▄▀▌████▐▀▄▄▀▌██

 ██████▀▀▀▀███████▀▀▀▀█████

▐████████████■▄▄▄■██████████▀
▐██████████████████████████▀
██████████████████████████▀
▀███████████████████████▀
  ▀███████████████████▀
    ▀███████████████▀
.
         ▄ ▄▄▀▀▀▀▄▄
         ▄▀▀▄      █
         █   ▀▄     █
       ▄█▄     ▀▄   █
      ▄▀ ▀▄      ▀█▀
    ▄▀     ▀█▄▄▄▀▀ ▀
  ▄▀  ▄▀  ▄▀

Live Games

   ▄▄▀▀▀▀▀▀▀▄▄
 ▄▀ ▄▄▀▀▀▀▀▄▄ ▀▄
▄▀ █ ▄  █  ▄ █ ▀▄
█ █   ▀   ▀   █ █  ▄▄▄
█ ▀▀▀▀▀▀▀▀▀▀▀▀▀ █ █   █
█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█  █▄█
█ ▀▀█  ▀▀█  ▀▀█ █  █▄█

Slots
.
        ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄
        █         ▄▄  █
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄       █
█  ▄▄         █       █
█             █       █
█   ▄▀▀▄▀▀▄   █       █
█   ▀▄   ▄▀   █       █

Blackjack
|█▀▀▀▀▀█▄▄▄
       ▀████▄▄
         ██████▄
▄▄▄▄▄▄▄▄█▀    ▀▀█
████████▄        █
█████████▄        █
██████████▄     ▄██
█████████▀▀▀█▄▄████
▀▀███▀▀       ████
   █          ███
   █          █▀
▄█████▄▄▄ ▄▄▀▀
███████▀▀▀
.
                 NEW!                  
SPORTS BETTING 
|||
[ Đ ][ Ł ]
AVAILABLE NOW

Advertisements are not endorsed by me.
wesjuhnl (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
December 04, 2013, 06:53:56 PM
 #28

This is one interesting case. An exported private key that cannot be imported and a wallet that doesn't sign, that does sound like a corrupted wallet. Going to follow this.


The private key has been imported into my wallet, but after this i cannot send my coins anymore.

Also i cannot dumpprivkey and import into other wallet because that gives an error.

So basicly my coins are in my current wallet but somehow i cant send them, and i cannot import the private key into an other wallet anymore.

Btc: 1BxeYiGGk64tCsotMwVhepVcAfoRRsR81k

Ltc: LanjQbwLhYSQkQbyuy5KDCEP6bmakZJd2V

Yac: YN5gfrrgupTN76m787YfDf2GNVRvxR67Ge

Ftc: 6efpCJD7mkEe79U4gzq6oEsAvnZGJub1Dj
Dare
Hero Member
*****
Offline Offline

Activity: 508
Merit: 500


Techwolf on #bitcoin and Reddit


View Profile WWW
December 04, 2013, 07:04:18 PM
Last edit: December 04, 2013, 07:18:48 PM by Dare
 #29

The private key has been imported into my wallet, but after this i cannot send my coins anymore.

Also i cannot dumpprivkey and import into other wallet because that gives an error.

So basicly my coins are in my current wallet but somehow i cant send them, and i cannot import the private key into an other wallet anymore.

Is your wallet encrypted? If so, try this:
Quote
launch your bitcoin client as usual and wait for it to load the blockchain and start up
click on 'help' in the menu bar (top right)
click on 'debug window'
select the 'console' tab
type: walletpassphrase <Your actual passphrase here> 600
type: dumpprivkey [your public key here]
this will return the private key, you can copy it now; ensure you clear your clipboard/history afterwards
type: walletlock
Typing "walletpassphrase 600" doesn't work if your passphrase isn't "600". Try the above, but replace the red text with your actual passphrase.

If your wallet's not encrypted, you can skip the "walletpassphrase" and "walletlock" steps.

If that still doesn't work, I'd suggest a rescan of the blockchain (close bitcoin-qt and run "bitcoin-qt --rescan" on the command line, it'll take a while to start). Try rebooting your computer too, that can solve a lot of problems.

EDIT: Forgot the wallet timeout Tongue

BTC: 1M8oUcBnkRDEhWWgV8ZXLTB6p1mgnejVbX
How Forum Activity Works
Bitcointalk Forum Rules
|
|
|
Firstbits (lucky vanitygen): 1WoLfRUGDx1
How Forum Trust Works
Bitcoin Source Code
wesjuhnl (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
December 04, 2013, 07:07:02 PM
 #30

The private key has been imported into my wallet, but after this i cannot send my coins anymore.

Also i cannot dumpprivkey and import into other wallet because that gives an error.

So basicly my coins are in my current wallet but somehow i cant send them, and i cannot import the private key into an other wallet anymore.

Is your wallet encrypted? If so, try this:
Quote
launch your bitcoin client as usual and wait for it to load the blockchain and start up
click on 'help' in the menu bar (top right)
click on 'debug window'
select the 'console' tab
type: walletpassphrase <Your actual passphrase here>
type: dumpprivkey [your public key here]
this will return the private key, you can copy it now; ensure you clear your clipboard/history afterwards
type: walletlock
Typing "walletpassphrase 600" doesn't work if your passphrase isn't "600". Try the above, but replace the red text with your actual passphrase.

If your wallet's not encrypted, you can skip the "walletpassphrase" and "walletlock" steps.

If that still doesn't work, I'd suggest a rescan of the blockchain (close bitcoin-qt and run "bitcoin-qt --rescan" on the command line, it'll take a while to start). Try rebooting your computer too, that can solve a lot of problems.

I cannot use walletpassphrase yourpasshere without the 600 i get an error then :

walletpassphrase <passphrase> <timeout>
Stores the wallet decryption key in memory for <timeout> seconds. (code -1)

Btc: 1BxeYiGGk64tCsotMwVhepVcAfoRRsR81k

Ltc: LanjQbwLhYSQkQbyuy5KDCEP6bmakZJd2V

Yac: YN5gfrrgupTN76m787YfDf2GNVRvxR67Ge

Ftc: 6efpCJD7mkEe79U4gzq6oEsAvnZGJub1Dj
Dare
Hero Member
*****
Offline Offline

Activity: 508
Merit: 500


Techwolf on #bitcoin and Reddit


View Profile WWW
December 04, 2013, 07:17:33 PM
 #31

...

Is your wallet encrypted? If so, try this:
Quote
launch your bitcoin client as usual and wait for it to load the blockchain and start up
click on 'help' in the menu bar (top right)
click on 'debug window'
select the 'console' tab
type: walletpassphrase <Your actual passphrase here> 600
type: dumpprivkey [your public key here]
this will return the private key, you can copy it now; ensure you clear your clipboard/history afterwards
type: walletlock
Typing "walletpassphrase 600" doesn't work if your passphrase isn't "600". Try the above, but replace the red text with your actual passphrase.

If your wallet's not encrypted, you can skip the "walletpassphrase" and "walletlock" steps.

If that still doesn't work, I'd suggest a rescan of the blockchain (close bitcoin-qt and run "bitcoin-qt --rescan" on the command line, it'll take a while to start). Try rebooting your computer too, that can solve a lot of problems.

I cannot use walletpassphrase yourpasshere without the 600 i get an error then :

walletpassphrase <passphrase> <timeout>
Stores the wallet decryption key in memory for <timeout> seconds. (code -1)
Sorry, I forgot about the timeout. The command you want is "walletpassphrase <Your actual passphrase here> 600". Bitcoin-qt should show a lock icon in the lower right corner of the main window, it will show as an open lock once when wallet is successfully locked. It will automatically lock again after 10 minutes or when you use the "walletlock" command, whichever is first.

BTC: 1M8oUcBnkRDEhWWgV8ZXLTB6p1mgnejVbX
How Forum Activity Works
Bitcointalk Forum Rules
|
|
|
Firstbits (lucky vanitygen): 1WoLfRUGDx1
How Forum Trust Works
Bitcoin Source Code
wesjuhnl (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
December 04, 2013, 07:30:28 PM
 #32

...

Is your wallet encrypted? If so, try this:
Quote
launch your bitcoin client as usual and wait for it to load the blockchain and start up
click on 'help' in the menu bar (top right)
click on 'debug window'
select the 'console' tab
type: walletpassphrase <Your actual passphrase here> 600
type: dumpprivkey [your public key here]
this will return the private key, you can copy it now; ensure you clear your clipboard/history afterwards
type: walletlock
Typing "walletpassphrase 600" doesn't work if your passphrase isn't "600". Try the above, but replace the red text with your actual passphrase.

If your wallet's not encrypted, you can skip the "walletpassphrase" and "walletlock" steps.

If that still doesn't work, I'd suggest a rescan of the blockchain (close bitcoin-qt and run "bitcoin-qt --rescan" on the command line, it'll take a while to start). Try rebooting your computer too, that can solve a lot of problems.

I cannot use walletpassphrase yourpasshere without the 600 i get an error then :

walletpassphrase <passphrase> <timeout>
Stores the wallet decryption key in memory for <timeout> seconds. (code -1)
Sorry, I forgot about the timeout. The command you want is "walletpassphrase <Your actual passphrase here> 600". Bitcoin-qt should show a lock icon in the lower right corner of the main window, it will show as an open lock once when wallet is successfully locked. It will automatically lock again after 10 minutes or when you use the "walletlock" command, whichever is first.

Iv done all this before, i can dumpprivkey and i get the code but i cannot import that into another wallet or blockchain wallet. I get an error.

Btc: 1BxeYiGGk64tCsotMwVhepVcAfoRRsR81k

Ltc: LanjQbwLhYSQkQbyuy5KDCEP6bmakZJd2V

Yac: YN5gfrrgupTN76m787YfDf2GNVRvxR67Ge

Ftc: 6efpCJD7mkEe79U4gzq6oEsAvnZGJub1Dj
Dare
Hero Member
*****
Offline Offline

Activity: 508
Merit: 500


Techwolf on #bitcoin and Reddit


View Profile WWW
December 04, 2013, 07:37:56 PM
 #33

...

Iv done all this before, i can dumpprivkey and i get the code but i cannot import that into another wallet or blockchain wallet. I get an error.

Have you tried removing the passphrase and importing the unencrypted wallet into blockchain.info? I've never imported a wallet.dat there, so I don't know how it handles them.

The only other things I can think of that could be the problem is that either you copied the key wrong and it's missing a character (I've done that before), you're using the public address instead of the private key (unlikely, private key starts with a 5, bitaddress.org can give you an example and it's pretty obvious) or that all your coins are in a change address and blockchain.info won't sweep an empty key (bitaddress.org would have worked, though, so it's probably not that).

Have you tried telling bitcoin-qt to rescan the blockchain yet? If so, did it give any errors, and how long did it take?

Also, can you post the public address here? DON'T post the private key, just the address you use to receive funds for that wallet (e.g. 1M8oUcBnkRDEhWWgV8ZXLTB6p1mgnejVbX).

BTC: 1M8oUcBnkRDEhWWgV8ZXLTB6p1mgnejVbX
How Forum Activity Works
Bitcointalk Forum Rules
|
|
|
Firstbits (lucky vanitygen): 1WoLfRUGDx1
How Forum Trust Works
Bitcoin Source Code
starik69
Legendary
*
Offline Offline

Activity: 1367
Merit: 1000


View Profile
December 04, 2013, 08:28:55 PM
 #34


I went to bitadress.org put in private key in wallet details.

It says in private key wif all zero's
Is your private key 5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAbuatmU ? lol
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1032



View Profile WWW
December 05, 2013, 05:13:11 AM
 #35

The error comes from wallet.cpp:
Code:
                // Sign
                int nIn = 0;
                BOOST_FOREACH(const PAIRTYPE(const CWalletTx*,unsigned int)& coin, setCoins)
                    if (!SignSignature(*this, *coin.first, wtxNew, nIn++))
                    {
                        strFailReason = _("Signing transaction failed");
                        return false;
                    }

SignSignature is two functions, the former is called, and the False status is returned by the final VerifyScript call.

Code:
bool SignSignature(const CKeyStore &keystore, const CScript& fromPubKey, CTransaction& txTo, unsigned int nIn, int nHashType)
{
    assert(nIn < txTo.vin.size());
    CTxIn& txin = txTo.vin[nIn];

    // Leave out the signature from the hash, since a signature can't sign itself.
    // The checksig op will also drop the signatures from its hash.
    uint256 hash = SignatureHash(fromPubKey, txTo, nIn, nHashType);

    txnouttype whichType;
    if (!Solver(keystore, fromPubKey, hash, nHashType, txin.scriptSig, whichType))
        return false;

    if (whichType == TX_SCRIPTHASH)
    {
        // Solver returns the subscript that need to be evaluated;
        // the final scriptSig is the signatures from that
        // and then the serialized subscript:
        CScript subscript = txin.scriptSig;

        // Recompute txn hash using subscript in place of scriptPubKey:
        uint256 hash2 = SignatureHash(subscript, txTo, nIn, nHashType);

        txnouttype subType;
        bool fSolved =
            Solver(keystore, subscript, hash2, nHashType, txin.scriptSig, subType) && subType != TX_SCRIPTHASH;
        // Append serialized subscript whether or not it is completely signed:
        txin.scriptSig << static_cast<valtype>(subscript);
        if (!fSolved) return false;
    }

    // Test solution
    return VerifyScript(txin.scriptSig, fromPubKey, txTo, nIn, SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC, 0);
}

bool SignSignature(const CKeyStore &keystore, const CTransaction& txFrom, CTransaction& txTo, unsigned int nIn, int nHashType)
{
    assert(nIn < txTo.vin.size());
    CTxIn& txin = txTo.vin[nIn];
    assert(txin.prevout.n < txFrom.vout.size());
    const CTxOut& txout = txFrom.vout[txin.prevout.n];

    return SignSignature(keystore, txout.scriptPubKey, txTo, nIn, nHashType);
}

That's all fun, but I think the problem here is there is garbage bytes written over the wallet.dat, or the berkeleydb store is corrupted, such as pointing to the wrong disk area for information. Time to rename this wallet and restore your wallet.dat backup, easy.

Oh, no backup... Well, make a backup now: copy the wallet.dat you've got to a backup filename. Then restart bitcoin with the -salvagewallet option to scrape wallet information into a new database.
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!