Pages:
Author

Topic: Help: Unserendipitous Multisig Transaction (Read 1486 times)

legendary
Activity: 1260
Merit: 1019
April 11, 2016, 01:58:36 AM
#21
what did you do for work?
What am I? I am android programmer in small IT-company.
newbie
Activity: 10
Merit: 0
You have to know that I am the person who is responsible for this your problem Smiley
If I can malle transactions, I should be able to 'normalize' them to correct state

what did you do for work?
legendary
Activity: 1260
Merit: 1019
You have to know that I am the person who is responsible for this your problem Smiley
If I can malle transactions, I should be able to 'normalize' them to correct state
newbie
Activity: 10
Merit: 0
Wow! It works!  Grin


thaaaanks amaclin!  Cheesy

you saved me! love you s2
legendary
Activity: 1260
Merit: 1019
Wow! It works!  Grin
legendary
Activity: 1260
Merit: 1019
Quick and dirty solution

Code:
const QByteArray Transaction::normalize ( ) const
{
  MyByteArray data;
  data.putVersion ( ).putVarInt ( countInputs ( ) );
  for ( int j ( 0 ); j < countInputs ( ); j++ )
  {
    const TxInput in ( getInput ( j ) );
    const QByteArray& script ( in.getScript ( ) );
    data.putArray ( in.get36signature ( ) )
        .putPrefixed ( xnormalize ( script ) )
        .putInt32 ( in.getSequence ( ) );
  }
  data.putVarInt ( countOutputs ( ) );
  for ( int j ( 0 ); j < countOutputs ( ); j++ )
  {
    const TxOutput out ( getOutput ( j ) );
    data.putInt64 ( out.getAmount ( ) )
        .putPrefixed ( out.getScript ( ) );
  }
  data.putInt32 ( TX_LOCK );
  return data;
}
sr. member
Activity: 467
Merit: 267
With 7 inputs, there is less than a chance in  a  100 that it works by luck. You could try out with  a wallet that supports multi sig like electrum.
newbie
Activity: 10
Merit: 0
sr. member
Activity: 467
Merit: 267
Use the verify tab and post here what you get.
newbie
Activity: 10
Merit: 0
the transaction changes when I click re-sign
but when I finished, continues the following error:

https://postimg.org/image/ig0ctpvr3/
sr. member
Activity: 467
Merit: 267
If your transaction doesn't change when you re-sign, you will have modify it the hard way
newbie
Activity: 10
Merit: 0
unsuccessfully
tomorrow try another hour.
thanks.
newbie
Activity: 10
Merit: 0
ok, I'll do it

thanks.
sr. member
Activity: 467
Merit: 267
Easiest way is to keep doing what you did. Every attempt has roughly a 50% chance of success as long as you re-sign
newbie
Activity: 10
Merit: 0
sr. member
Activity: 467
Merit: 267
Problem solved?
newbie
Activity: 10
Merit: 0
legendary
Activity: 4130
Merit: 1307
It was my first transaction multisig.
then I lost my $ 400?

You should move this into the AlphaBayMarket section.

As far as whether you lost your $400, it is hard to say without more information.
newbie
Activity: 10
Merit: 0
It was my first transaction multisig.
then I lost my $ 400?
sr. member
Activity: 467
Merit: 267
First of all, entering your private key in a website is a bad idea (ms-brainwallet) and a market that recommends doing so is suspicious to say the least.

Secondly, the error message you get is usually associated with non standard signatures. Bitcoin core wants low S signatures. If you don't know what it means, you should not use raw transactions.
Pages:
Jump to: