Bitcoin Forum
November 18, 2017, 08:40:38 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Enable OP-Codes & Scripting?  (Read 883 times)
crazy_rabbit
Legendary
*
Offline Offline

Activity: 1176


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.
1510994438
Hero Member
*
Offline Offline

Posts: 1510994438

View Profile Personal Message (Offline)

Ignore
1510994438
Reply with quote  #2

1510994438
Report to moderator
1510994438
Hero Member
*
Offline Offline

Posts: 1510994438

View Profile Personal Message (Offline)

Ignore
1510994438
Reply with quote  #2

1510994438
Report to moderator
1510994438
Hero Member
*
Offline Offline

Posts: 1510994438

View Profile Personal Message (Offline)

Ignore
1510994438
Reply with quote  #2

1510994438
Report to moderator
A blockchain platform for effective freelancing
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1510994438
Hero Member
*
Offline Offline

Posts: 1510994438

View Profile Personal Message (Offline)

Ignore
1510994438
Reply with quote  #2

1510994438
Report to moderator
1510994438
Hero Member
*
Offline Offline

Posts: 1510994438

View Profile Personal Message (Offline)

Ignore
1510994438
Reply with quote  #2

1510994438
Report to moderator
1510994438
Hero Member
*
Offline Offline

Posts: 1510994438

View Profile Personal Message (Offline)

Ignore
1510994438
Reply with quote  #2

1510994438
Report to moderator
Peter Todd
Legendary
*
expert
Offline Offline

Activity: 1106


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


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: 12


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: 1582

Reverse engineer from time to time


View Profile
November 03, 2013, 01:33:42 AM
 #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: 1778


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
Legendary
*
Offline Offline

Activity: 1176


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
*
qt
Offline Offline

Activity: 2338



View Profile
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.

Bitcoin will not be compromised
btc4ever
Sr. Member
****
Offline Offline

Activity: 419


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
*
qt
Offline Offline

Activity: 2338



View Profile
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.

Bitcoin will not be compromised
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!