Bitcoin Forum
April 20, 2024, 04:28:21 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 »
1  Bitcoin / Development & Technical Discussion / Error: Signature must be zero for failed CHECK(MULTI)SIG operation on: November 14, 2016, 07:53:29 PM
Hi, could someone give me a hand with an error?

16: mandatory-script-verify-flag-failed (Signature must be zero for failed CHECK(MULTI)SIG operation)

I get this error message when i try to send a transaction in regtest (i didn't test it in other networks). Details:


Code:
bitcoin-cli sendrawtransaction "01000000019a6f1c41fd248d499742f5d35f8fa261be00a0a187785eefe5d1cacb42abe2930000000048473044022027e72718acc7a14b3654cc4e86cb5d46d5ca020e327d9941a7965a3e9a52a4840220243a7ed16753f46194ffbdec68c4fa300c23cba30e499a147eba383f47119c2d01ffffffff0250bb052a010000001976a914aa9fcf69961a101de1a3279238657391e9f8141b88ac0000000000000000226a20d4962daf2b2f39666bcd8d35df1357c5608b7019791c20812cd9108b830388bc00000000"
error code: -26
error message:
16: mandatory-script-verify-flag-failed (Signature must be zero for failed CHECK(MULTI)SIG operation)



Code:
bitcoin-cli decoderawtransaction "01000000019a6f1c41fd248d499742f5d35f8fa261be00a0a187785eefe5d1cacb42abe2930000000048473044022027e72718acc7a14b3654cc4e86cb5d46d5ca020e327d9941a7965a3e9a52a4840220243a7ed16753f46194ffbdec68c4fa300c23cba30e499a147eba383f47119c2d01ffffffff0250bb052a010000001976a914aa9fcf69961a101de1a3279238657391e9f8141b88ac0000000000000000226a20d4962daf2b2f39666bcd8d35df1357c5608b7019791c20812cd9108b830388bc00000000"
{
  "txid": "eb09809dcedeca7874c5b9457256e8418ba00d96a35d9e3526f17a7f11030e36",
  "hash": "eb09809dcedeca7874c5b9457256e8418ba00d96a35d9e3526f17a7f11030e36",
  "size": 200,
  "vsize": 200,
  "version": 1,
  "locktime": 0,
  "vin": [
    {
      "txid": "93e2ab42cbcad1e5ef5e7887a1a000be61a28f5fd3f54297498d24fd411c6f9a",
      "vout": 0,
      "scriptSig": {
        "asm": "3044022027e72718acc7a14b3654cc4e86cb5d46d5ca020e327d9941a7965a3e9a52a4840220243a7ed16753f46194ffbdec68c4fa300c23cba30e499a147eba383f47119c2d[ALL]",
        "hex": "473044022027e72718acc7a14b3654cc4e86cb5d46d5ca020e327d9941a7965a3e9a52a4840220243a7ed16753f46194ffbdec68c4fa300c23cba30e499a147eba383f47119c2d01"
      },
      "sequence": 4294967295
    }
  ],
  "vout": [
    {
      "value": 49.99986000,
      "n": 0,
      "scriptPubKey": {
        "asm": "OP_DUP OP_HASH160 aa9fcf69961a101de1a3279238657391e9f8141b OP_EQUALVERIFY OP_CHECKSIG",
        "hex": "76a914aa9fcf69961a101de1a3279238657391e9f8141b88ac",
        "reqSigs": 1,
        "type": "pubkeyhash",
        "addresses": [
          "mw58cUP45n5S3cA82p5nFxNWYT8L4YZWHw"
        ]
      }
    },
    {
      "value": 0.00000000,
      "n": 1,
      "scriptPubKey": {
        "asm": "OP_RETURN d4962daf2b2f39666bcd8d35df1357c5608b7019791c20812cd9108b830388bc",
        "hex": "6a20d4962daf2b2f39666bcd8d35df1357c5608b7019791c20812cd9108b830388bc",
        "type": "nulldata"
      }
    }
  ]
}

Can you see what is wrong? Thank you.


UPDATE:


Code:
C:\Users\lucas.ontivero>bitcoin-cli decodescript 473044022027e72718acc7a14b3654cc4e86cb5d46d5ca020e327d9941a7965a3e9a52a4840220243a7ed16753f46194ffbdec68c4fa300c23cba30e499a147eba383f47119c2d01
{
  "asm": "3044022027e72718acc7a14b3654cc4e86cb5d46d5ca020e327d9941a7965a3e9a52a4840220243a7ed16753f46194ffbdec68c4fa300c23cba30e499a147eba383f47119c2d01",
  "type": "nonstandard",
  "p2sh": "2N1ceLS8UmGjqnduV5G11suZKpjoDd49dNH"
}

It says type: nonstandard! why?
2  Bitcoin / Development & Technical Discussion / How to parse "utxos" structure from hex respresentation returned by Rest interfa on: June 28, 2015, 11:28:14 PM
Hi, I am developing a RestClient for consuming the bitcoind rest service and I found a problem parsing the utxos from the hex representation. This is what I do:

GET http://localhost:18332/rest/getutxos/b2cdfd7b89def827ff8af7cd9bff7627ff72e5e8b0f71210f92ea7a4000c5d75-0.hex

That response with: eb6b070082b58a4bd66efb6043bbc3ac89796161743196fbf42d7fe8e9d3ef0300000000010000

Following the BIP64 https://github.com/bitcoin/bips/blob/master/bip-0064.mediawiki#specification I know that
chainheight = 486379,
chaintipHash = 0000000003efd3e9e87f2df4fb96317461617989acc3bb4360fb6ed64b8ab582

but I have no way to know how many bytes the bitmap has, and that is because I don't know how many utxos are.

From the bitcoin repo I see

Code:
ssGetUTXOResponse << chainActive.Height() << chainActive.Tip()->GetBlockHash() << bitmap << outs;
string ssGetUTXOResponseString = ssGetUTXOResponse.str();

Is there any whay to know how many utxos the response has?

UPDATE:

A better question could be: how do I have to interprete the ending 3 bytes (010000 in hex)?
3  Bitcoin / Bitcoin Technical Support / REST inteface question on: June 27, 2015, 05:23:19 PM
Hi,

I am trying to use the rest interface included in 0.10.0 (I'm using 0.10.1) but cannot make it work.

This is what I do:

Run bitcoin-qt as follow:

bitcoin-qt.exe -testnet -rest -rpcport=18332

Inmediatly after that, I send a GET request:

http://127.0.0.1:18332/rest/chaininfo.json

The response is 503 - Service unavailable: a valid reason (verifying blocks / Loading Indexes / Something about wallet / etc - I don't remember the messages really but the point is the 503 error is ok )

Seconds after that, I send exactly the same request:

http://127.0.0.1:18332/rest/chaininfo.json

And I get a 404 - Not Found.

What am I doing wrong?
4  Bitcoin / Bitcoin Discussion / NY Bank interested in blockchain. on: April 28, 2015, 03:10:17 PM
Few minutes ago I had a meeting to explain the blockchain to some middle management of the company that I work for. They wanted to understand what the company can offer to a NY bank because the bank has a budget item to invest "in blockchain", whatever that means.
5  Bitcoin / Bitcoin Technical Support / Bitcoin-qt 0.10.0 stopped working - ReadCompactSize() : size too large on: April 20, 2015, 02:37:29 AM
Hi,

I was using bitcoin-qt 0.10.0 and it worked so far but now, it always fails. This is the last part of the debug.log file. In the end there are two ERROR entries.

2015-04-20 01:53:44 Bound to 0.0.0.0:8333
2015-04-20 01:53:44 init message: Cargando el índice de bloques...
2015-04-20 01:53:44 Opening LevelDB in C:\Users\****\AppData\Roaming\Bitcoin\blocks\index
2015-04-20 01:53:44 Opened LevelDB successfully
2015-04-20 01:53:44 Opening LevelDB in C:\Users\****\AppData\Roaming\Bitcoin\chainstate
2015-04-20 01:53:44 Opened LevelDB successfully
2015-04-20 01:53:56 LoadBlockIndexDB: last block file = 252
2015-04-20 01:53:56 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=244, size=95301518, heights=350714...351103, time=2015-04-04...2015-04-07)
2015-04-20 01:53:56 Checking all blk files are present...
2015-04-20 01:54:09 LoadBlockIndexDB(): transaction index enabled
2015-04-20 01:54:10 LoadBlockIndexDB(): hashBestChain=000000000000000001bd8a044a084bbee53c8a6b7bb118145f71c31edab15764 height=350919 date=2015-04-06 02:53:23 progress=0.976874
2015-04-20 01:54:10 init message: Verificando bloques...
2015-04-20 01:54:10 Verifying last 288 blocks at level 3
2015-04-20 02:09:31 ERROR: ReadBlockFromDisk : Deserialize or I/O error - ReadCompactSize() : size too large
2015-04-20 02:09:31 ERROR: VerifyDB() : *** ReadBlockFromDisk failed at 350690, hash=000000000000000013290aecbe160e27e4d92b71dd2e397e9a8abeaee85ac7ac


What can I do?

Thank you.
6  Bitcoin / Bitcoin Technical Support / [Tool] Open 8333 port on NAT devices on: March 10, 2015, 08:03:37 PM
For those that are behind a NAT and don't know how to do port forwarding on 8333 port. I have created a little Windows command line tool to do it automatically.

https://github.com/lontivero/BitcoinPortOpener 
7  Bitcoin / Development & Technical Discussion / Realtime Analysis for transactions reusing R values (Robot) on: December 22, 2014, 04:13:31 AM

I've been studing bitcoin for a couple of weeks and I was able to understand it (partially) after creating some little and useless tools (that's how I learn new things) so, I was very surprised by the bci issue and all the technical discussions about security especially about ECDSA and how to get the private key from the signature that reuse the same R values.  In fact in for a while I though there was a robot stoling bitcoins and that idea hit my head all the day so, yesterday I created a bitcoin transaction sniffer (a tcp sniffer that filters the 8333 port) that watches for transactions sent to my full node and checks if two or more inputs are reusing the same R value in the scriptSig, if there is a reuse then it calculates the private key and imports it to the wallet.

I know it sounds like a hacking tool with no good intentions but currently it is a harmless tool and an example about how to obtain the private key from two signatures that are reusing the same R value (the math is interesting). It can be used for other kind of realtime transactions analysis and the idea to implement it with a sniffer instead of doing a fake node could be useful too because we can analyse the traffic and collaborate with the network at the same time.

Here you can see a console output when it is sniffing the tcp/ip traffic for incoming transactions.



And the code is in github https://github.com/lontivero/BitcoinWatcher.git
8  Other / Meta / Is there something behind the constant trolling? on: December 19, 2014, 12:46:27 AM
It is just that, you know, there are 4 or 5 very known and annoying trolls that are a bit aggresive in this forum and constantly insult those that think btc is not a ponzy scam. What is really wierd is that they use their time and effort creating new accounts and opening discussions with the plain intention to let you know that you are not selling your bitcoins because your are just an idiot.

Is there something behind the trolling or are just idle people?  
9  Bitcoin / Bitcoin Discussion / The importance of "Programmable" money (Bitcoin) on: December 11, 2014, 03:12:04 PM
Hi, I´ve just upload a short article to LinkedIn.

https://www.linkedin.com/pulse/importance-programmable-money-lucas-ontivero
10  Local / Español (Spanish) / Cómo puede bitcoin cambiar el mundo on: December 10, 2014, 01:27:09 PM
Hola,

he subido un pequeño videito (~6mins) sobre cómo veo a las monedas digitales cambiando el mundo. Espero que les agrade.

https://www.youtube.com/watch?v=Y7xpsDd09pU

11  Bitcoin / Development & Technical Discussion / Newbie question about block mining racing. on: December 01, 2014, 08:12:18 PM
Hi,

there is something that I don't understand very well and I hope you could help me. Just imagine there are 2 nodes (node A and node B), each maintains a list of unverified transactions
* Node A has tx1, tx2 and tx3
* Node B has tx1, tx3 and tx4

Then they both decide to include them all in a new block and start mining. Node A finds the hash first so, it includes its block in the blockchain and publishes it. That is what I understood however I don't know how Node B should behave because it has 2 transactions in common with A.

- Should Node B to stop mining its block?  

And my last question (at least for a couple of days) is:

- How do nodes decide how many transactions to include in a block?
12  Bitcoin / Bitcoin Discussion / Who are the next adopters? on: November 30, 2014, 11:27:22 PM
Hi,

I was thinking for a while about who will be the next people to adopt Bitcoin after techies. IMO they should be the financial services guys or black market's types. What do you think?
13  Bitcoin / Bitcoin Technical Support / Bitcoin-qt 25% CPU and 500MB RAM on: November 28, 2014, 11:15:05 PM
Hi,

I wanted to consolidate all my wallets in one, just to have only one balance (because I has some satoshis here and there) so, I did a wallet backup 328 KBs and restore a 2 year-old wallet that I had with several small transactions and also imported the wallets that I had in my other computers. Finally I imported the backuped wallet's private keys. After that (almost 40 minutes), I had a 8MBs wallet and the bitcoin-qt client started to use 25% CPU and almost 500MBs RAM.

After this I restored the 328KBs wallet (it has just a couple of addresses and transactions) and all go back to normal. Is this the expected consumption?  
14  Bitcoin / Bitcoin Discussion / Total number of bitcoin users on: November 28, 2014, 05:04:38 PM
Hi, is there an estimation anywhere about how many real users bitcoin has?
15  Bitcoin / Development & Technical Discussion / Bitcoin protocol standarization on: November 28, 2014, 05:04:22 AM
Hi,

Everytime I tell some people about bitcoin they ask me "who controls it?". I tell them nobody does it because it is a protocol just like http or smtp. However sometimes I think that that is not true. Of course nobody controls the currency but the bitcoin core team is who takes the decisions about the "reference" implementation, what means it is the team that update the protocol even when there are other full-node implementations out there.

In fact, if we have a "reference implementation" is because the thruth is in the source code instead of being in a specification document and that's also a problem. Moreover, you need to be a top hacker to understand the reference implementation source code because it is a bit messy so, if I am right, the thruth is in a messy piece of code.

These facts don't look very well because it means centralization and unilateral control. And there are other signals here and there, in this moment I can read "News: Bitcoin Core 0.9.3 has been released. Download." in the this forum header. I mean, it is more and more like the "official" node. Oh, the alert message described in the protocol specs looks like a centralised broadcast system (yes, I understand it is okay and is there for a good reason)

I think something should be done in order to improve this situation. I know it sounds awful but we need an agreement system like a IETF for the bitcoin protocol.

Is something similar in the roadmap?
16  Economy / Service Discussion / Companies that accept bitcoins on: November 26, 2014, 10:17:25 PM
Hi, I need to do a list of companies (big ones, if possible) that accept bitcoins. I know about Dell, Overstock, PayPal, AirBaltic, Mozilla, Apache, Wordpress, and I am going to search for others. Could you help me with a company name? 

(I know there is a page in the bitcoin.org wiki with lots a lots of companies however they are very small and unknown, many of them about bitcoin itself. I need to create a power point spreadsheet to share with some companies' directors and they don't care about little companies -I do-.)

Oh, it doesn't have to be a company, it can also be any well-known organization or person. (Snowden for example)

Thx!
17  Economy / Speculation / Everything except the price trend is going fantastic on: November 26, 2014, 03:10:46 PM
I don't use to open discussions here because all my questions have already been answered somewhere in this forum however I cannot understand what is going on in these days with the bitcoin price. Let me explain myself:

It is clear for me that in this year (2014) we are a lot better than years before. We can buy directly with bitcoins in overstock and paypal has "integrated" bitcoin in its payment system. I also saw a browser extension that allow us to buy in amazon (there is a middleman).

Without MtGox and after the 2013's bubble the ecosystem looks healthier than before.

There weren't bad news in 2014, no more repetitive-fear-generator SilkRoad / drugs / isis / satan news. In fact there were more good news thanks to new projects/startups.

I think that in this atmosphere the bitcoin's price shouldn't go down. What is going on? Do you know?
18  Bitcoin / Development & Technical Discussion / .NET Blockchain Parser on: November 19, 2014, 09:52:27 PM
Hi,

I've just uploaded a little project that can parse the blockchain (the raw blk?Huh?.dat files) and returns the block's data (block, transactions, inputs and outputs) while it walks the blockchain. It is a very very simple piece of code and works pretty well.

As an example, in the same github repo there is a tool that reads the blockchain and save its blocks data in a ms sql database. I called it BlockchainToSql. I know there is a similar tool available for MySql but we, the .NET devs, are as we are.

the github repo: https://github.com/lontivero/BlockchainParser

If you find it interesting and want to collaborate then please do it.
19  Local / Argentina / Evento en Córdoba on: June 05, 2013, 06:29:46 PM
Gente, estamos organizando un evento para el día 27 de Junio en la ciudad de Córdoba, Los detalles de los temas, dirección, cómo inscribirse y demás los puse en este otro thread:

https://bitcointalk.org/index.php?topic=226246.msg2381586#msg2381586

Saludos.
20  Bitcoin / Meetups / Córdoba, Argentina on: June 05, 2013, 06:26:13 PM
Hi guys, this is just to let you know that we´re organising an event for next 27th June in Córdoba city, Argentina. Here the details:

Bitcoins:  El oro del futuro

Introducción

En un mundo que avanza aceleradamente hacia la digitalización de todo cuanto es posible, Bitcoin es la evolución natural del dinero,  una moneda digital que está cobrando cada vez mayor relevancia en el mundo entero. La posibilidad de tener dinero en la nuve para transferirla de manera inmediata, sin costo y de manera segura a cualquier persona, en cualquier parte del mundo introduce cambios en el comercio tal y cual lo conocemos hoy a la vez que promete transformar de manera radical todos aquellos elementos en los que el  dinero interviene.  

Objetivos:

Difundir el conocimiento de esta moneda digital entre el público que desee iniciarse en su uso,
Explicar sus beneficios, potencialidad y desafios que introduce en el mundo globalizado,
Presentar los posibles futuros escenarios en el uso de la moneda.
Temas

Presentación de bitcoin como moneda, historia, conceptos, su uso, tecnología, monedas alternativas, seguridad, mercados, valor actual y probable valor futuro.
Mercado, qué se puede comprar con bitcoins, aspectos legales, regulación, valor intrínseco y mitos.
Cambios en el comercio, en la sociedad, en el sistema bancario, inflación/deflación y prestamos.
Evolución del bitcoin en el mundo
Bitcoin en el contexto Argentino, volatilidad, trading, alternativa al dolar/oro como resguardo de valor.


Lugar: colegio universitario IES, en Buenos Aires 563, Nueva Córdoba.

Para inscribirte, sigue el siguiente link: https://docs.google.com/forms/d/1lsuF7C-dZD3Xwtjam8_TDoSC-OnPnahcDmCXpRowVgM/viewform
Pages: [1] 2 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!