Bitcoin Forum
May 14, 2024, 03:40:46 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Enable OP-Codes & Scripting?  (Read 974 times)
crazy_rabbit (OP)
Legendary
*
Offline Offline

Activity: 1204
Merit: 1001


RUM AND CARROTS: A PIRATE LIFE FOR ME


View Profile
January 30, 2013, 06:22:05 PM
 #1

While I am a novice programmer, I am intrigued by the possibilities of scripting with Bitcoin but noticed that they are currently disabled, and I understand that most likely for good reason. Are there any thoughts about enabling them sometime soon? What would need to be done to enable them?

more or less retired.
1715701246
Hero Member
*
Offline Offline

Posts: 1715701246

View Profile Personal Message (Offline)

Ignore
1715701246
Reply with quote  #2

1715701246
Report to moderator
1715701246
Hero Member
*
Offline Offline

Posts: 1715701246

View Profile Personal Message (Offline)

Ignore
1715701246
Reply with quote  #2

1715701246
Report to moderator
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715701246
Hero Member
*
Offline Offline

Posts: 1715701246

View Profile Personal Message (Offline)

Ignore
1715701246
Reply with quote  #2

1715701246
Report to moderator
1715701246
Hero Member
*
Offline Offline

Posts: 1715701246

View Profile Personal Message (Offline)

Ignore
1715701246
Reply with quote  #2

1715701246
Report to moderator
1715701246
Hero Member
*
Offline Offline

Posts: 1715701246

View Profile Personal Message (Offline)

Ignore
1715701246
Reply with quote  #2

1715701246
Report to moderator
Peter Todd
Legendary
*
expert
Offline Offline

Activity: 1120
Merit: 1150


View Profile
January 30, 2013, 06:36:31 PM
 #2

They are enabled already on Testnet so you can try your experiments there.

Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652
Merit: 2216


Chief Scientist


View Profile WWW
January 30, 2013, 09:56:36 PM
 #3

http://bitcoin.stackexchange.com/questions/5664/will-general-non-standard-transactions-ever-be-allowed

How often do you get the chance to work on a potentially world-changing project?
TheBitcoinTote
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
November 03, 2013, 01:28:58 AM
 #4

@Crazy_rabbit

Can or has terracoin loosen the isStandard() check?
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
November 03, 2013, 01:33:42 AM
Last edit: November 03, 2013, 06:17:50 PM by Remember remember the 5th of November
 #5

Correct me if I am wrong, but don't most op-codes already work? Isn't like OP_CHECKSIG, OP_WHATNOT already used in Bitcoin? Aren't these op-codes?? And isn't that considered "scripting"?

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
piotr_n
Legendary
*
Offline Offline

Activity: 2053
Merit: 1354


aka tonikt


View Profile WWW
November 03, 2013, 04:10:15 PM
 #6

Most of the opcodes are enabled - only these are disabled:
Code:
0x7e/*OP_CAT*/
0x7f/*OP_SUBSTR*/
0x80/*OP_LEFT*/
0x81/*OP_RIGHT*/
0x83/*OP_INVERT*/
0x84/*OP_AND*/
0x85/*OP_OR*/
0x86/*OP_XOR*/
0x8d/*OP_2MUL*/
0x8e/*OP_2DIV*/
0x95/*OP_MUL*/
0x96/*OP_DIV*/
0x97/*OP_MOD*/
0x98/*OP_LSHIFT*/
0x99/*OP_RSHIFT*/
But they seem pretty useless, anyway.

All the other opcodes should work fine, as soon as you manage to convince a miner to include such a tx for you, in a block.
I'd suggest bribing it, by leaving a decent fee - eventually they will realize that mining a non-standard txs might be a good business opportunity.

Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
crazy_rabbit (OP)
Legendary
*
Offline Offline

Activity: 1204
Merit: 1001


RUM AND CARROTS: A PIRATE LIFE FOR ME


View Profile
November 03, 2013, 04:42:03 PM
 #7

@Crazy_rabbit

Can or has terracoin loosen the isStandard() check?

I'm not the dev for Terracoin, and for the moment I'm not really involved in anything TRC related. :-/

more or less retired.
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4172
Merit: 8420



View Profile WWW
November 03, 2013, 06:14:48 PM
 #8

But they seem pretty useless, anyway.
alas, actually they're useful. With them you could validate a SPV proof for a cross chain txn, for example.
btc4ever
Sr. Member
****
Offline Offline

Activity: 321
Merit: 250


View Profile
November 03, 2013, 06:25:13 PM
 #9

Can anyone provide the history as to why the disabled opcodes were disabled in the first place?   Or were they simply never implemented?

Psst!!  Wanna make bitcoin unstoppable? Why the Only Real Way to Buy Bitcoins Is on the Streets. Avoid banks and centralized exchanges.   Buy/Sell coins locally.  Meet other bitcoiners and develop your network.   Try localbitcoins.com or find or start a buttonwood / satoshi square in your area.  Pass it on!
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4172
Merit: 8420



View Profile WWW
November 03, 2013, 06:27:56 PM
 #10

Can anyone provide the history as to why the disabled opcodes were disabled in the first place?   Or were they simply never implemented?
The implementations were buggy.  In the case of the LSHIFT operator there was a remotely triggerable crash. All the operators that changed the sizes of types basically got disabled as a precautionary measure.
Pages: [1]
  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!