Within the context of Bitcoin, scripts are a set of instructions on how to complete a transaction. The default send/receive actions are scripts but the protocol can be extended through the creation of new scripts, such as the DNS replacement abilities of NameCoin.

learn more… | top users | synonyms

0
votes
1answer
33 views

Conditional scripting: how does OP_NOTIF (and OP_IF) operation(s) affect the stack?

I'm trying to write a scriptPubKey for a transaction which checks that the hash of the top value in the scriptSig is equal to either one of two fixed values and if so will do the normal transaction ...
0
votes
0answers
56 views

VPS server mine LTC: can Cairo graphics perhaps replace a GPU using a TcL script?

My name is Ben and I'm working with a server technician called Fab. We are using Team-viewer to work together on this question to make it as concise and to the point as possible. We have set up a ...
4
votes
1answer
64 views

Is it possible (in some way or other) to expire a txout?

I read Contracts: Will this be possible? where part of the question related to expiring a transaction and one of the replies said that it would never be possible since it causes problems. ...
0
votes
0answers
29 views

How does Multi-Signature Pay 2 Script Hash (P2SH) enable stronger security?

Coinfloor says it will pay out withdrawals using Multi-Signature Pay 2 Script Hash. What is Multi-Signature Pay 2 Script Hash? I read What is "Script Hash" address exactly and how does it ...
2
votes
1answer
44 views

Is there any way to send an output to a script which can then only be sent to one of two addresses?

Is the following scenario possible? I want to send money to a script. This script will require knowing a private key to spend, as usual, but the script is only valid if the money is being sent to one ...
0
votes
1answer
21 views

What are some valid ways to obfuscate the scriptPubKey?

Is it possible to hide the balance of an address from standard clients who may be watching blockchain? I'm thinking about using script to modify the the key that is to be verified, but am having ...
2
votes
1answer
52 views

What node implementations and mining pools relay and process 'non-standard' scripts?

Which Bitcoin node implementations, if any, currently relay valid transactions that use so-called 'non-standard' scripts? What proportion of the network is made up of these implementations? What ...
1
vote
2answers
60 views

What if the execution time for an alt coin script exceeds the block time?

I don't know when and how often a script is executed, but it seems to me that there would be a problem if a single script (or a sum of all scripts in a block) exceeds the time it takes to be included ...
1
vote
2answers
140 views

How does ScriptPubKey know the public key of an Bitcoin address?

I am currently having a blonde moment. The ScriptPubKey provides a hashed version of the receivers public key. scriptPubKey OP_DUP OP_HASH160 OP_EQUALVERIFY OP_CHECKSIG However, if I give ...
1
vote
3answers
55 views

Could the standard pay to address script be simpler? e.g. no compare of the HASH160?

What if I had a scriptPubKey of <pubKey>OP_CHECKSIG And an scriptSig of <sig> Question Would that work in the standard client? Why do we need to check the hash? The only ...
0
votes
1answer
61 views

Given that contracts can be formed in the blockchain using scripts, couldn't a contract include a mechanism for facilitating chargebacks?

While I understand that chargebacks, or the lack thereof are an important feature for encouraging merchants to adopt bitcoin, the reverse may be true for consumers. There is probably a balance to be ...
5
votes
3answers
142 views

Tx Malleability: Why is the Script not included in the Signed Hash?

Sipa lists sources of tx malleability here: https://gist.github.com/sipa/8907691 It is clear to me how a change in the signature itself or the signature formating leads to a different tx hash (1. ...
0
votes
1answer
151 views

CPU bottleneck and script mining?

Im planing to set up a small energy efficient mining rig, im planing to use a low power CPU/MOBO bundle, this is my favorite: Biostar A68I-350 (with 1 DIMM DDR3 4Gb) It takes only 18W TDP and has one ...
2
votes
1answer
87 views

Why is an invalid pubkey accepted in the blockchain?

while trying to understand the address validation process, I fell upon this block : https://blockchain.info/tx/3d29f43a3278281192943276049c15e5f0d8c7e75d4d99a4cd6693113a948f48 In the outputs, the ...
1
vote
1answer
297 views

How to fully decode a coinbase transaction?

After reading this What is the format of coinbase transaction? I was wondering about a few things. decoderawtransaction of a random Litecoin coinbase transaction: "coinbase" : ...
1
vote
2answers
86 views

Which scripts are currently considered standard and therefore actually propagated?

All I've learned about script so far is that while theoretically quite versatile (e.g. allowing multisignature transactions) most scripts are simply not propagated by the default client nodes, i.e. ...
-1
votes
1answer
44 views

Tracking a specific Bitcoin to make it represent something else, which could then be traded without trust [duplicate]

Imagine if one could follow the movements of a specific Bitcoin (or fraction thereof) in the block chain. Then that would mean that I could make that specific Bitcoin represent something else, which ...
1
vote
3answers
280 views

Can Bitcoin incorporate the scripting protocols of Ethereum without a fork?

I am curious if the Bitcoin protocol can incorporate Turing complete scripting capabilities without forking the block chain. I ask this because I understand the ability to create contracts digitally ...
0
votes
1answer
103 views

Can the Bitcoin script make a Google search?

This very interesting CCN Money article states a script uses a data input such as a regular Google search to monitor real-world events that would automatically trigger disbursements or other ...
1
vote
1answer
81 views

Completely confused with mutisig address and scripts

I used the guide, how to make escrow from bitcoin console. Here are my transactions in testnet: tx1 tx2 I am confused about ScriptPublicKey in tx1: OP_HASH160 ...
1
vote
1answer
83 views

Script To Limit Transactions To Specific Wallets

I am trying to write a script that will allow the receiver of my coins to only spend them on two wallets I specify. After that check has been done I want to perform the usual verification that the ...
0
votes
0answers
46 views

Nonstandard script - TX rejected

I am experimenting in testnet with nonstandard scripts. There was a transaction, created by me, with the following vout script: OP_HASH256 ...
0
votes
2answers
201 views

How to decode very huge (!) raw transactions?

I'm parsing the blockchain to extract certain information I need for a script. One thing I do is parsing transactions. What I do is: getrawtransaction <tx> decoderawtransaction <rawtx> ...
4
votes
1answer
373 views

How do “Pay to Script Hash” transactions work?

BIP16 gives the following example to explain "Pay to Script Hash": scriptSig: [signature] {[pubkey] OP_CHECKSIG} scriptPubKey: OP_HASH160 [20-byte-hash of {[pubkey] OP_CHECKSIG} ] OP_EQUAL But I ...
2
votes
1answer
367 views

parsing bitcoin input and output addresses from scripts

can someone walk me through the process of combining script inputs and outputs to reveal the base58 encoded input and output addresses. take for example, block 728. this has two raw script inputs: ...
1
vote
1answer
87 views

scriptPubKey consisting of the only hash

I found out that some transactions have strange scriptPubKey in their outs. They only contain a hash and nothing more. An example can be seen in JSON-view of block 200639: { "value":"0.00000000", ...
-1
votes
2answers
381 views

Off the shelf system for scrypt mining?

Being busy and now somewhat lazy I'm wondering if someone has a pointer to anyone selling off the shelf systems set up for scrypt mining? Eg. for LTC etc. Something with a single or dual 7950 or R9 ...
1
vote
1answer
47 views

How do you publish a transaction which is cancelled if not claimed by a given time?

How do you publish a transaction which is cancelled if some output is not claimed by a given time? (ie returning all the spent coins to their inputs or else creating new conditions under which they ...
6
votes
1answer
873 views

Turing completeness of Bitcoin Script

For me, scripts are one of the most interesting features of Bitcoin. They provide possibilities which have no equivalent in classical currencies. However, the wiki states It is purposefully not ...
3
votes
1answer
107 views

What is opcode 252?

Writing my own blockchain parser, I have come across an unrecognized opcode in block number 142312. The relevant section of the transaction input is this: "in":[ { "prev_out":{ ...
-1
votes
1answer
130 views

Can someone create a very complex transaction to try to fork the network?

If contracts are built into the code already, what is to stop someone from creating a transaction script that is very cpu intensive to verify, so that some computers accept the block with it and ...
9
votes
1answer
802 views

How to create a transaction with a custom script?

Is there a step-by-step tutorial or any documentation covering how to create a transaction that is not a standard OP_DUP OP_HASH160 <pubKeyHash> OP_EQUALVERIFY OP_CHECKSIG? It seems very odd ...
2
votes
1answer
315 views

Does createrawtransaction have the ability to create a transaction with custom scripts?

Does createrawtransaction always use the following script? scriptPubKey: OP_DUP OP_HASH160 <pubKeyHash> OP_EQUALVERIFY OP_CHECKSIG scriptSig: <sig> <pubKey> If so, how do you ...
0
votes
1answer
161 views

There was a transaction spendable only by someone who provided the double hash of the genesis block. How was that transaction created?

I can't find it anywhere, but I remember reading about a transaction that was spendable only by someone who provided the double hash of the genesis block. Was it simply that the private key of an ...
1
vote
1answer
709 views

Public Key / Private Key Generation in a bash script (osx / ubuntu)

I am creating a bash script (that I will happily share on github when done) that takes random public and private keys for bitcoin and then bottles them up in an AES encrypted container and then SSSS ...
1
vote
0answers
49 views

How can I add recipient on bitcoind CLI

I know I can add recipients to a transaction on bitcoin-qt and I am looking for a similar way to do it on bitcoind CLI on linux and in bash script. I tried using createrawtransaction and multi-sig ...
2
votes
0answers
197 views

How to change donation address of p2pool

I am working on the fork of p2pool to a new coin, and it seems that the donation script in the original could only accept BTC, etc. How to change this script to a new address? It looks like something ...
0
votes
0answers
1k views

All of a sudden hashrate drops to half the normal

I usually get a nice 200 Mh/s out of my XFX 6770 clocked at 950 MHz / 300 MHz. Sometimes I'll check cgminer and see the hashrate has dropped to around 90Mh/s while temperature of the GPU dropped to a ...
8
votes
2answers
835 views

How vulnerable is bitcoin to quantum algorithms? [duplicate]

Assuming that quantum computers are implemented some time in the near-ish future, how vulnerable is Bitcoin to decryption via quantum algorithms? For example, Shor's algorithm enables a quantum ...
1
vote
1answer
430 views

An explanation of transaction scripts

https://en.bitcoin.it/wiki/Script I'm trying to wrap my mind around them. Could anyone provide a bit more intuitive understanding?
1
vote
3answers
181 views

Instant confirmations with pre-published, locked, transactions

(Clarification: This is not an attempt to solve the problem of a vendor taking the money and running without handing over the merchandise. Problems like that can't be solved without some third party. ...
3
votes
1answer
2k views

What is “Script Hash” address exactly and how does it work?

I found out this address playing with blockchain https://blockchain.info/address/3NukJ6fYZJ5Kk8bPjycAnruZkE5Q7UW7i8 I found out it's something called "scripthash". How does it work exactly? How does ...
2
votes
1answer
422 views

Signature in scriptSig

I'm a bit confused about the signature contained in the scriptSig of a transaction. My question is: what do we really sign? is it the hash of the previous transaction?
1
vote
1answer
261 views

How OP_EQUALVERIFY works in a standard transaction?

3 weeks ago I began learning about Bitcoins, and now I'm analyzing how it works internally. My problem is that I can't understand what two public key hashes are compare to use de OP_EQUALVERIFY, ...
11
votes
1answer
2k views

What is relation between scriptSig and scriptPubKey?

Scenario: A is sending 1 BTC to B. scriptSig appears in the Input Script. scriptSig = <sig> <pubKey> Here, public key is the Public Key of the sender, A. (this is the public key ...
5
votes
1answer
413 views

How is the Output script formed?

I read about Input and output scripts on the wiki here: https://en.bitcoin.it/wiki/Transactions Let's say, I use my Bitcoin - QT Program, I go to "Send Coins" tab, enter a Bitcoin Address, BTC ...
6
votes
3answers
987 views

Can I use single address for all my transactions?

Can I always use single public key (addr1) for all my transactions and when I spend every time protect it with different scripts / keys (key2, key3, etc.), so that spending requires at least two keys ...
2
votes
1answer
119 views

How do I list all unique scripts from blockchain?

How do I list all unique scripts in the block chain, and their count (n-times-used)?
4
votes
1answer
165 views

In Bitcoin scripting, can you have an IF within an IF?

In bitcoin, you can create a script like this: OP_1 OP_IF OP_RETURN OP_ENDIF But could you place another if statement inside the first? OP_1 OP_IF OP_1 OP_IF OP_RETURN OP_ENDIF OP_ENDIF I grant ...
2
votes
1answer
384 views

How can a Bitcoin Oracle ensure that the money can't be respent?

Suppose I modify the requirements of the Inheritance Scripting Sample where I need to make sure that the prior BTC is "guaranteed" to be available and not reduced or re-spent prior to either of the ...