In the bitcoin scripting language, how can I access other outputs of the transaction? Or how else can I limit how the coins may be spent? The Next CEO of Stack OverflowWhat is opcode 252?Is there any way to send an output to a script which can then only be sent to one of two addresses?Can Bitcoin scripting be used for double spending attacks?Is there any way to make an UTXO that cannot be spent until a certain block #?Is there a maximum size of a scriptSig/scriptPubKey?PUSHDATA4 unnecessary?(Script) Is it possible to create a transaction that is spendable to only one address?How to automatically reveal the secret after some tine in a hash locked transactionCan a transaction have a single 0-value OP_RETURN as its only output?What’s the opcode sequence for doing the reverse of Multisig?

Getting Stale Gas Out of a Gas Tank w/out Dropping the Tank

Why is information "lost" when it got into a black hole?

What CSS properties can the br tag have?

Is it professional to write unrelated content in an almost-empty email?

How to get the last not-null value in an ordered column of a huge table?

Why the last AS PATH item always is `I` or `?`?

What would be the main consequences for a country leaving the WTO?

Help understanding this unsettling image of Titan, Epimetheus, and Saturn's rings?

Can I calculate next year's exemptions based on this year's refund/amount owed?

What steps are necessary to read a Modern SSD in Medieval Europe?

Calculate the Mean mean of two numbers

Prepend last line of stdin to entire stdin

What flight has the highest ratio of timezone difference to flight time?

Towers in the ocean; How deep can they be built?

I dug holes for my pergola too wide

Do I need to write [sic] when including a quotation with a number less than 10 that isn't written out?

What day is it again?

Would a grinding machine be a simple and workable propulsion system for an interplanetary spacecraft?

Is it ok to trim down a tube patch?

When "be it" is at the beginning of a sentence, what kind of structure do you call it?

Help! I cannot understand this game’s notations!

Is it correct to say moon starry nights?

What was Carter Burke's job for "the company" in Aliens?

Can Sneak Attack be used when hitting with an improvised weapon?



In the bitcoin scripting language, how can I access other outputs of the transaction? Or how else can I limit how the coins may be spent?



The Next CEO of Stack OverflowWhat is opcode 252?Is there any way to send an output to a script which can then only be sent to one of two addresses?Can Bitcoin scripting be used for double spending attacks?Is there any way to make an UTXO that cannot be spent until a certain block #?Is there a maximum size of a scriptSig/scriptPubKey?PUSHDATA4 unnecessary?(Script) Is it possible to create a transaction that is spendable to only one address?How to automatically reveal the secret after some tine in a hash locked transactionCan a transaction have a single 0-value OP_RETURN as its only output?What’s the opcode sequence for doing the reverse of Multisig?










1















Is there any way to add an opcode to a UTXO that prevents how the coins are spent?



For example, in order to to spend the output, a person must send X number of bitcoin to Y address within the accompanying transaction.










share|improve this question


























    1















    Is there any way to add an opcode to a UTXO that prevents how the coins are spent?



    For example, in order to to spend the output, a person must send X number of bitcoin to Y address within the accompanying transaction.










    share|improve this question
























      1












      1








      1








      Is there any way to add an opcode to a UTXO that prevents how the coins are spent?



      For example, in order to to spend the output, a person must send X number of bitcoin to Y address within the accompanying transaction.










      share|improve this question














      Is there any way to add an opcode to a UTXO that prevents how the coins are spent?



      For example, in order to to spend the output, a person must send X number of bitcoin to Y address within the accompanying transaction.







      script op-return






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked yesterday









      nick carrawaynick carraway

      1589




      1589




















          1 Answer
          1






          active

          oldest

          votes


















          4














          There is no way to enforce a rule regarding the nature of an output when an input is spent. You will have to enforce this off chain in some manner, perhaps through multisig schemes where one key is held by a rule engine that will only sign the tx if your requirements are met.






          share|improve this answer























          • Is that what, "Incentivized finding of hash collisions" is ?en.bitcoin.it/wiki/Script

            – nick carraway
            yesterday












          • No, that is a bounty people can claim if they are able to produce two values that hash to the same hash for some hash function in the script. For example, the bounty for sha1 was claimed after Google released a collision attack

            – Raghav Sood
            yesterday






          • 1





            The coins can still be sent anywhere, there is no restriction on the destination

            – Raghav Sood
            yesterday











          • Thanks. I have found the best explanation: learnmeabitcoin.com/glossary/script

            – nick carraway
            yesterday






          • 2





            @UgamKamat That would on the condition that the final transaction incorporates that exact signed input. It does not allow you to set the condition from within a Bitcoin Script itself, and it does not prevent someone who has the key for that utxo M from sending it to any other address by simply signing a new tx input.

            – Raghav Sood
            yesterday











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "308"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fbitcoin.stackexchange.com%2fquestions%2f85723%2fin-the-bitcoin-scripting-language-how-can-i-access-other-outputs-of-the-transac%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          4














          There is no way to enforce a rule regarding the nature of an output when an input is spent. You will have to enforce this off chain in some manner, perhaps through multisig schemes where one key is held by a rule engine that will only sign the tx if your requirements are met.






          share|improve this answer























          • Is that what, "Incentivized finding of hash collisions" is ?en.bitcoin.it/wiki/Script

            – nick carraway
            yesterday












          • No, that is a bounty people can claim if they are able to produce two values that hash to the same hash for some hash function in the script. For example, the bounty for sha1 was claimed after Google released a collision attack

            – Raghav Sood
            yesterday






          • 1





            The coins can still be sent anywhere, there is no restriction on the destination

            – Raghav Sood
            yesterday











          • Thanks. I have found the best explanation: learnmeabitcoin.com/glossary/script

            – nick carraway
            yesterday






          • 2





            @UgamKamat That would on the condition that the final transaction incorporates that exact signed input. It does not allow you to set the condition from within a Bitcoin Script itself, and it does not prevent someone who has the key for that utxo M from sending it to any other address by simply signing a new tx input.

            – Raghav Sood
            yesterday















          4














          There is no way to enforce a rule regarding the nature of an output when an input is spent. You will have to enforce this off chain in some manner, perhaps through multisig schemes where one key is held by a rule engine that will only sign the tx if your requirements are met.






          share|improve this answer























          • Is that what, "Incentivized finding of hash collisions" is ?en.bitcoin.it/wiki/Script

            – nick carraway
            yesterday












          • No, that is a bounty people can claim if they are able to produce two values that hash to the same hash for some hash function in the script. For example, the bounty for sha1 was claimed after Google released a collision attack

            – Raghav Sood
            yesterday






          • 1





            The coins can still be sent anywhere, there is no restriction on the destination

            – Raghav Sood
            yesterday











          • Thanks. I have found the best explanation: learnmeabitcoin.com/glossary/script

            – nick carraway
            yesterday






          • 2





            @UgamKamat That would on the condition that the final transaction incorporates that exact signed input. It does not allow you to set the condition from within a Bitcoin Script itself, and it does not prevent someone who has the key for that utxo M from sending it to any other address by simply signing a new tx input.

            – Raghav Sood
            yesterday













          4












          4








          4







          There is no way to enforce a rule regarding the nature of an output when an input is spent. You will have to enforce this off chain in some manner, perhaps through multisig schemes where one key is held by a rule engine that will only sign the tx if your requirements are met.






          share|improve this answer













          There is no way to enforce a rule regarding the nature of an output when an input is spent. You will have to enforce this off chain in some manner, perhaps through multisig schemes where one key is held by a rule engine that will only sign the tx if your requirements are met.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered yesterday









          Raghav SoodRaghav Sood

          7,68121127




          7,68121127












          • Is that what, "Incentivized finding of hash collisions" is ?en.bitcoin.it/wiki/Script

            – nick carraway
            yesterday












          • No, that is a bounty people can claim if they are able to produce two values that hash to the same hash for some hash function in the script. For example, the bounty for sha1 was claimed after Google released a collision attack

            – Raghav Sood
            yesterday






          • 1





            The coins can still be sent anywhere, there is no restriction on the destination

            – Raghav Sood
            yesterday











          • Thanks. I have found the best explanation: learnmeabitcoin.com/glossary/script

            – nick carraway
            yesterday






          • 2





            @UgamKamat That would on the condition that the final transaction incorporates that exact signed input. It does not allow you to set the condition from within a Bitcoin Script itself, and it does not prevent someone who has the key for that utxo M from sending it to any other address by simply signing a new tx input.

            – Raghav Sood
            yesterday

















          • Is that what, "Incentivized finding of hash collisions" is ?en.bitcoin.it/wiki/Script

            – nick carraway
            yesterday












          • No, that is a bounty people can claim if they are able to produce two values that hash to the same hash for some hash function in the script. For example, the bounty for sha1 was claimed after Google released a collision attack

            – Raghav Sood
            yesterday






          • 1





            The coins can still be sent anywhere, there is no restriction on the destination

            – Raghav Sood
            yesterday











          • Thanks. I have found the best explanation: learnmeabitcoin.com/glossary/script

            – nick carraway
            yesterday






          • 2





            @UgamKamat That would on the condition that the final transaction incorporates that exact signed input. It does not allow you to set the condition from within a Bitcoin Script itself, and it does not prevent someone who has the key for that utxo M from sending it to any other address by simply signing a new tx input.

            – Raghav Sood
            yesterday
















          Is that what, "Incentivized finding of hash collisions" is ?en.bitcoin.it/wiki/Script

          – nick carraway
          yesterday






          Is that what, "Incentivized finding of hash collisions" is ?en.bitcoin.it/wiki/Script

          – nick carraway
          yesterday














          No, that is a bounty people can claim if they are able to produce two values that hash to the same hash for some hash function in the script. For example, the bounty for sha1 was claimed after Google released a collision attack

          – Raghav Sood
          yesterday





          No, that is a bounty people can claim if they are able to produce two values that hash to the same hash for some hash function in the script. For example, the bounty for sha1 was claimed after Google released a collision attack

          – Raghav Sood
          yesterday




          1




          1





          The coins can still be sent anywhere, there is no restriction on the destination

          – Raghav Sood
          yesterday





          The coins can still be sent anywhere, there is no restriction on the destination

          – Raghav Sood
          yesterday













          Thanks. I have found the best explanation: learnmeabitcoin.com/glossary/script

          – nick carraway
          yesterday





          Thanks. I have found the best explanation: learnmeabitcoin.com/glossary/script

          – nick carraway
          yesterday




          2




          2





          @UgamKamat That would on the condition that the final transaction incorporates that exact signed input. It does not allow you to set the condition from within a Bitcoin Script itself, and it does not prevent someone who has the key for that utxo M from sending it to any other address by simply signing a new tx input.

          – Raghav Sood
          yesterday





          @UgamKamat That would on the condition that the final transaction incorporates that exact signed input. It does not allow you to set the condition from within a Bitcoin Script itself, and it does not prevent someone who has the key for that utxo M from sending it to any other address by simply signing a new tx input.

          – Raghav Sood
          yesterday

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Bitcoin Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fbitcoin.stackexchange.com%2fquestions%2f85723%2fin-the-bitcoin-scripting-language-how-can-i-access-other-outputs-of-the-transac%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

          Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

          What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company