Bitcoin Forum
December 03, 2016, 02:32:12 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1] 2 »  All
  Print  
Author Topic: How to create custom script  (Read 1338 times)
brandon720
Newbie
*
Offline Offline

Activity: 5


View Profile
July 12, 2012, 09:28:26 PM
 #1

I am working on am anonomized version of bitcoin.
I have added an OP_CODE to script.cpp and script.h, however have been unable to figure out how to create my own script to utilize it.
grep`ing the source code for bitcoind and bitcoind-qt for select OP_CODES did not produce results outside of the script.* files.
1480732332
Hero Member
*
Offline Offline

Posts: 1480732332

View Profile Personal Message (Offline)

Ignore
1480732332
Reply with quote  #2

1480732332
Report to moderator
1480732332
Hero Member
*
Offline Offline

Posts: 1480732332

View Profile Personal Message (Offline)

Ignore
1480732332
Reply with quote  #2

1480732332
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Ukigo
Hero Member
*****
Offline Offline

Activity: 924


View Profile
July 13, 2012, 07:03:38 AM
 #2

Give us more details.
What goals are you trying to achieve ?

"...Enemies are everywhere ! Angka is all rage ! Be a good soldiers, blow everything... " <-- Pol Pot (C)
brandon720
Newbie
*
Offline Offline

Activity: 5


View Profile
July 13, 2012, 01:16:23 PM
 #3

We're trying to create a system were you can spend coins anonymously. We plan on doing this by adding OP_GEN_ANON_COIN and OP_VERIFY_AONON_COIN to the script op_codes, and then modifying the script to use them. We know how to do the first part, but have been unable to locate where the script is defined.
Ukigo
Hero Member
*****
Offline Offline

Activity: 924


View Profile
July 13, 2012, 03:46:06 PM
 #4

Read this :
https://bitcointalk.org/index.php?topic=24784.0
Maybe they are already done what you wishing for ?!

"...Enemies are everywhere ! Angka is all rage ! Be a good soldiers, blow everything... " <-- Pol Pot (C)
brandon720
Newbie
*
Offline Offline

Activity: 5


View Profile
July 13, 2012, 04:00:00 PM
 #5

Thanks for the link.
It looks like what they are doing is making is easier on the UI level to keep you bitcoin identities seperate. What we are working on is a protocol level change where you cannot determine the bitcoin identity of the sender in the first place.
Ukigo
Hero Member
*****
Offline Offline

Activity: 924


View Profile
July 13, 2012, 04:27:53 PM
 #6

Change in the protocol must be supported by majority of
clients and/or miners, IMHO.

You need to talk to core devs of Bitcoin.

"...Enemies are everywhere ! Angka is all rage ! Be a good soldiers, blow everything... " <-- Pol Pot (C)
brandon720
Newbie
*
Offline Offline

Activity: 5


View Profile
July 13, 2012, 08:31:17 PM
 #7

The plan is to create a new chain entirely. The main reason we were interested in bitcoin was using its existing code base to handle the block chain (and probably mining). Seeing as how this is proving much more difficult than we expected, we are giving up on using bitcoind code, and will start from scratch.
Ukigo
Hero Member
*****
Offline Offline

Activity: 924


View Profile
July 14, 2012, 04:27:12 AM
 #8

Good luck !

May i ask several questions ?
1) Will your new cryptocoin be mineable on CPU or GPU ?
2) What kind of proof of work it will use ?
3) What else will differ it from Bitcoin ?

"...Enemies are everywhere ! Angka is all rage ! Be a good soldiers, blow everything... " <-- Pol Pot (C)
brandon720
Newbie
*
Offline Offline

Activity: 5


View Profile
July 14, 2012, 10:24:07 PM
 #9

Quote
1) Will your new cryptocoin be mineable on CPU or GPU ?
2) What kind of proof of work it will use ?
3) What else will differ it from Bitcoin ?

Is it possible to only be minable on 1? More to the point, the coins themselves are RSA keys, (p*q where p,q are both prime). There are two ways to add a coin to the chain, A) solve some problem, probably the same one bitcoin uses for mining, or B) prove that you you know p,q for some coin that already exists (you do not need to show which coin you know). 

The concept for spending a coin is that the receiver sends you p*q, and you use method B to add p*q as a coin to the chain, while providing a proof that you know (p,q) for a coin already in the chain, and some function of that coin so that you cannot spend it later.
Ukigo
Hero Member
*****
Offline Offline

Activity: 924


View Profile
July 15, 2012, 05:38:20 AM
 #10

Thanks for the answers !

So far no mining algo was found only mineable on CPU or GPU, but not on both.
It looks like this challenge is quite hard.
Maybe you will be more lucky with this.

It appears that your cryptocoin design is way different from any currently existing.
Though i guess you have not all parts of the puzzle in place  Wink

maybe the better way for you is to complete you theoretical research,
and then post full design here, on the forum for critics and suggestions.




"...Enemies are everywhere ! Angka is all rage ! Be a good soldiers, blow everything... " <-- Pol Pot (C)
Slushpuppy
Member
**
Offline Offline

Activity: 104



View Profile
July 15, 2012, 05:48:00 AM
 #11

Quote
and some function of that coin so that you cannot spend it later.


wouldn't a public blockchain ensure this, like bitcoin?

Litecoin Address: LfMeo8KnbgGywFMQmDvAbRLXXguZaHncEy
Foxpup
Legendary
*
Online Online

Activity: 1694



View Profile
July 15, 2012, 11:57:21 PM
 #12

So far no mining algo was found only mineable on CPU or GPU, but not on both.
It looks like this challenge is quite hard.
Maybe you will be more lucky with this.

It's not just hard, it's impossible. CPUs and GPUs are both Turing complete, meaning that any function which can be computed by one can also be computed by the other. It's just a matter of which is faster. FPGAs and ASICs can be designed to compute any Turing computable function as well.

Will pretend to do unverifiable things (while actually eating an enchilada-style burrito) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
Ukigo
Hero Member
*****
Offline Offline

Activity: 924


View Profile
July 16, 2012, 05:33:16 AM
 #13

But, theoretically, we have possibility to design the mining algo, which :
1) will not give substantial speed up on GPUs against CPUs.
  and at the same time
2) will make construction of ASIC or FPGA or any specialased hardware
VERy-VERY expensive task ( i.e. economically impossible ).

"...Enemies are everywhere ! Angka is all rage ! Be a good soldiers, blow everything... " <-- Pol Pot (C)
John (John K.)
Global Troll-buster and
Legendary
*
Online Online

Activity: 1092


Will read PM's. Have more time lately


View Profile
July 16, 2012, 06:38:54 AM
 #14

But, theoretically, we have possibility to design the mining algo, which :
1) will not give substantial speed up on GPUs against CPUs.
  and at the same time
2) will make construction of ASIC or FPGA or any specialased hardware
VERy-VERY expensive task ( i.e. economically impossible ).
Your CPU is an ASIC too.

My BTC Tip Jar: 1Pgvfy19uwtYe5o9dg3zZsAjgCPt3XZqz9 , GPG ID: B3AAEEB0 ,OTC ID: johnthedong
Escrow service is available on a case by case basis! (PM Me to verify I'm the escrow!)

Ukigo
Hero Member
*****
Offline Offline

Activity: 924


View Profile
July 16, 2012, 07:02:54 AM
 #15

But, my CPU costs, say 100 USD, and "real" ASIC <-- how much  ?   Smiley Tongue

"...Enemies are everywhere ! Angka is all rage ! Be a good soldiers, blow everything... " <-- Pol Pot (C)
Foxpup
Legendary
*
Online Online

Activity: 1694



View Profile
July 16, 2012, 07:19:38 AM
 #16

But, my CPU costs, say 100 USD, and "real" ASIC <-- how much  ?   Smiley Tongue

The same. It also costs about the same to design an ASIC as a CPU. Intel and AMD spend millions designing CPUs and GPUs only because there's such a large market for these chips. The reason we're only just starting to see the development of Bitcoin-mining ASICs is because the market for such hardware has only recently become large enough to justify the design costs. Note that ASICs will always be more efficient at the algorithm they're designed for than general-purpose hardware, and it is inevitable that they will be designed for any crypto-currency that has a large enough market. It is impossible to make an "ASIC-proof" coin, and it baffles me as to why anyone would want to, as ASICs (and any other technology that makes mining more efficient) provide more security for less cost.

Will pretend to do unverifiable things (while actually eating an enchilada-style burrito) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
Ukigo
Hero Member
*****
Offline Offline

Activity: 924


View Profile
July 16, 2012, 07:46:42 AM
 #17

If you are right, why say Intel is not selling "special for Bitcoin" ASIC-on-one-chip right now ?!
They are in better position, than some marginal lab from the basement.

All is possible, only probability of some of the options is a bitch  Smiley
but i like your "i am in this box forever !" style of thinking !  Tongue

"more security" ?!
yes, let's put security of the coinnet into the hands of the Big Money, which will buy majority
of the ASICs, will it be REALLY so good ?!



"...Enemies are everywhere ! Angka is all rage ! Be a good soldiers, blow everything... " <-- Pol Pot (C)
Foxpup
Legendary
*
Online Online

Activity: 1694



View Profile
July 16, 2012, 08:25:09 AM
 #18

If you are right, why say Intel is not selling "special for Bitcoin" ASIC-on-one-chip right now ?!
They are in better position, than some marginal lab from the basement.
Keep in mind that Bitcoin is still experimental, and Intel will have a lot of hard questions to answer if they pour millions of research dollars into something that later turns out to be a complete failure.

All is possible, only probability of some of the options is a bitch  Smiley
but i like your "i am in this box forever !" style of thinking !  Tongue
What "box" are you talking about? CPUs and GPUs are general-purpose devices. A special-purpose device will always be more efficient than a general-purpose one, simply by not requiring the overhead of functionality which is not needed for the purpose in question. The idea that an function can be devised for a general-purpose machine that cannot be better performed by a machine specifically designed for that function is laughable.

If anyone's stuck in a box, it's the people who insist on using CPUs when more efficient devices exist. A CPU exists to do anything you can program, and do an average job of it. If you want to do one thing only, and do that thing well, a specialised device really is the answer.

"more security" ?!
yes, let's put security of the coinnet into the hands of the Big Money, which will buy majority
of the ASICs, will it be REALLY so good ?!
The "Big Money" could equally well buy a huge number of CPUs, so what's your point? In fact, they wouldn't even need to buy their CPUs: any "CPU-friendly" coin is also ipso facto "botnet-friendly". Will that be really so good?

Will pretend to do unverifiable things (while actually eating an enchilada-style burrito) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
John (John K.)
Global Troll-buster and
Legendary
*
Online Online

Activity: 1092


Will read PM's. Have more time lately


View Profile
July 16, 2012, 08:38:13 AM
 #19

If you are right, why say Intel is not selling "special for Bitcoin" ASIC-on-one-chip right now ?!
They are in better position, than some marginal lab from the basement.
Keep in mind that Bitcoin is still experimental, and Intel will have a lot of hard questions to answer if they pour millions of research dollars into something that later turns out to be a complete failure.

All is possible, only probability of some of the options is a bitch  Smiley
but i like your "i am in this box forever !" style of thinking !  Tongue
What "box" are you talking about? CPUs and GPUs are general-purpose devices. A special-purpose device will always be more efficient than a general-purpose one, simply by not requiring the overhead of functionality which is not needed for the purpose in question. The idea that an function can be devised for a general-purpose machine that cannot be better performed by a machine specifically designed for that function is laughable.

If anyone's stuck in a box, it's the people who insist on using CPUs when more efficient devices exist. A CPU exists to do anything you can program, and do an average job of it. If you want to do one thing only, and do that thing well, a specialised device really is the answer.

"more security" ?!
yes, let's put security of the coinnet into the hands of the Big Money, which will buy majority
of the ASICs, will it be REALLY so good ?!
The "Big Money" could equally well buy a huge number of CPUs, so what's your point? In fact, they wouldn't even need to buy their CPUs: any "CPU-friendly" coin is also ipso facto "botnet-friendly". Will that be really so good?

This exactly. CPU-friendly coins run the inherent risk of being mined using botnets. Hell, even GPU-friendly coins (the stage where bitcoin is still at now) are mined tremendously by botnets. IIRC a reddit post said the botnet controller earned over a couple of k's per week from his bitcoin mining botnet.

My BTC Tip Jar: 1Pgvfy19uwtYe5o9dg3zZsAjgCPt3XZqz9 , GPG ID: B3AAEEB0 ,OTC ID: johnthedong
Escrow service is available on a case by case basis! (PM Me to verify I'm the escrow!)

Ukigo
Hero Member
*****
Offline Offline

Activity: 924


View Profile
July 16, 2012, 08:55:25 AM
 #20

Ok, call me stubborn or stupid.  Smiley
But, i still have feeling that such an algo is somehow possible, though it is difficault goal.

About botnets:

Am i right, that botnets operate mostly on Windows boxes( victims of the botnet ) ?
If so, massive shift of end users to Unix-like OSes can solve "botnet" issue.
-------------------------------------------------
BTW: we are derailing this thread to off-topic Tongue
OP, please excuse us, if you can.



"...Enemies are everywhere ! Angka is all rage ! Be a good soldiers, blow everything... " <-- Pol Pot (C)
Pages: [1] 2 »  All
  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!