Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [development]

This tag should be used for questions related to creation and ongoing work for different existing and future Bitcoin-related projects and source code.

0
votes
0answers
14 views

how to implement stack data structure using haskell? [on hold]

i won't perform stuck function like this (push, pop) using Haskell that are special for functional programming
8
votes
8answers
4k views

bitcoin programming book

is there any reference or authoritative resource, or book on bitcoin programming? Bitcoin is dubbed "programmable money" but there is no obvious resource for how to do it aside from trudging through ...
2
votes
2answers
51 views

Script Bitcoin represent number > 16

I'm studying Script language, but I don't understand How can I rappresent the number > 16, for instance 210 I want to do a simple sum OP_10 210 OP_ADD how I have to represent 210? I'm trying with ...
0
votes
0answers
31 views

How cryptocurrency miners use pools to find blocks programmatically? [on hold]

I am a beginner to the world of cryptocurrencies and I wonder how to develop miner like ccminer that uses GPUs to find blocks, how does it do it and what does it involve? Are there any SDKs that can ...
6
votes
2answers
964 views

Bitcoin Script tutorial

Are there any tutorials with examples on Bitcoin Script: from basics to complex scripts?
0
votes
2answers
94 views

What is the source of initial transactions of bitcoin?

Sorry, if I am wrong or silly! It is understood that: a) Satoshi Nakamoto sent the first transaction to developer Hal Finney on January 12, 2009, the genesis block contains 1,073 transactions and he ...
3
votes
1answer
86 views

How would the gossip protocol announce channels from a channel factory?

I was just listening to SLP59 with Christian Decker. They mainly discussed channel factories. While the construction of multiparty channels and higher order systems (sub channels) being derived from ...
4
votes
2answers
2k views

Bitcoin private key, location on ECC curve

In the ECDSA algorithm, the Bitcoin private key is supposedly a point on the graph (or is it?). But the private key is a single integer, and not x,y coordinates. Is the integer, by itself, the x ...
4
votes
4answers
362 views

How can I test and verify a vanity key before I send coins to it?

I ran vanitygen and oclvanitygen on the same machine, and realized after my run that both exe's share the same output file. I've had experience in the past where many programs append to the same TXT ...
6
votes
2answers
3k views

How do I generate coins on testnet? CPU, GPU, FPGA? Are there pools?

Is it possible to mine coins on testnet using CPU? GPU? How about FPGAs? Are there any pools running on testnet? The reason I am looking for this is so I can master the new API's relating to ...
0
votes
0answers
163 views

Building a simple spv android wallet for an altcoin Please help!

I am currently trying to build an android wallet for an altcoin that was forked from litecoin. I have been looking at the loafwallet to change the parameters: https://github.com/litecoin-foundation/...
6
votes
3answers
2k views

Paying for testnet coins?

If testnet coins are this difficult to get, what's the chance people start throwing in some real money to speed along the process? If only to just have to not wait to test, say if you have an ...
3
votes
1answer
96 views

What languages can I write plugins for c-lightning in?

I know that there's a Python library available for writing plugins for c-lightning. What would I need to do to for example use a JVM language like Scala?
8
votes
2answers
3k views

Transaction signature generation

When one sets up a transaction, the input of the transaction needs to have a script with a signature to show that you can spend those coins. Which fields of the previous and current transactions need ...
1
vote
0answers
40 views

Question about modify Vanitygen

I follow the instruction on this post to create bitcoin address from given hex private key In vanitygen.c Replace EC_KEY_generate_key(pkey); with BIGNUM *res; BN_init(&start); ...
0
votes
1answer
44 views

How do I catch the unconfirmed transactions?

I'm catching all the deposit transactions with walletnotify and insert them into my database. Then on every blocknotify call I fetch all the transactions under 6 confirmations from the db and update ...
2
votes
1answer
96 views

How to find all UTXOs?

It is known, that UTXOs stored in chainstate database. But how to get them in simple txt view? Not ballances, but each UTXO.
1
vote
1answer
544 views

Solo mining Altcoin (litecoin fork)

i have made a fork of the current Litecoin code version 0.15.1. I have already generated the genesis block and now i want to solo mine the coin. What is the correct way to do it solo? I tried ...
10
votes
3answers
3k views

How to implement a game like SatoshiDice?

Everyone knows what SatoshiDice is. Their core mechanic is gambling through the use of Bitcoin transactions with the payout being directly linked to the transaction that fuelled the bed to avoid ...
0
votes
1answer
111 views

Modify vanitygen to generate from massive amount of given private key

I just using vanitygen recently & figure how to create address from a given hex private key, this is my code while (!vcp->vc_halt) { if (++npoints >= rekey_at) { ...
1
vote
1answer
48 views

Why Ardor does not use Maven?

Are there some reasons why maven and standard maven directory layout are not used in Ardor?
0
votes
1answer
56 views

How does bitcoin broadcast information?

On Bitcoin's Blockchain, how is information transmitted instantly to all other nodes and do nodes 'talk to each other' through an API? Do Blockchain nodes communicate with each other through HTTP ...
1
vote
2answers
116 views

Bitcoin library vs script to develop application

I'm curious about the development of application of Identity management in Blockchain platform, but I'm a bit confused about the technologies to use. In short words, when is more convenient to ...
0
votes
1answer
188 views

Applying additional oauth scopes to coinbase

I am trying to apply the coinbase wallet API with oauth to use its send functionality. I have been able to connect to the API and use its endpoints, but whenever I try to use the send functionality, I ...
0
votes
1answer
513 views

Running a bitcoind docker

Thanks to the bitcoin.stack community I have successfully launched a bitcoind docker with an external volume which has the block data Currently its in 100% sync but I am facing an issue to get ...
1
vote
2answers
35 views

Would bitcoin core work on a big endian system? Or even a system where C++'s `int` is not 32-bit?

Looking at the source code of bitcoin core, the serialization part, I see that there's no serialization abstraction layer that accounts for a possible different endianness or different binary layouts ...
4
votes
6answers
4k views

What programming language should be used to develop Bitcoin exchange software? Why?

I've only heard PHP is terrible (e.g. in the context of Mt. Gox) and a more efficient/more security-oriented language would be preferable for matching orders and account security. Which programming ...
2
votes
1answer
67 views

Create a new receiving address in the behalf of another wallet?

I want to create an API service that will trigger my local wallet to generate new account with receive address and return that address to a user. User => API => my_local_wallet => API => User The ...
5
votes
2answers
604 views

How do I program smart contracts?

Is there a guide to learn how to program smart contracts for the Bitcoin blockchain?
0
votes
1answer
37 views

bitcoin repo sighash.json data format

Bitcoin enthusiast here. Learning "the hard way" how bitcoin works (andreas books, looking in js/python implementations), I'm writing (as an hobby) some code here and there to understand things and to ...
4
votes
5answers
2k views

Is it possible to schedule function calls to an Ethereum smart contract?

I am wondering - is it possible to schedule or somehow trigger function calls to an Ethereum smart contract based on the current block height or timestamp? This would involve some pre-payment of gas ...
68
votes
3answers
24k views

How to redeem a basic Tx?

Given a raw, standard Tx (wiki): 01000000 01 26c07ece0bce7cda0ccd14d99e205f118cde27e83dd75da7b141fe487b5528fb 00000000 8b ...
1
vote
1answer
33 views

I am web developer, can i use my working pc to mine and work at same time? [duplicate]

Guyz, i am a web developer, i have single pc but i am thinking to add a good GPU in it, my question is that if i add good GPU, will i be able to mine crypto currencies like BTC/ETH and work on my pc ...
1
vote
0answers
33 views

What Off-Chain programming languages are important in Blockchain development

I am looking at getting into Blockchain development, and I would like to have some idea about general programming languages that are relatively important compared to the general developer-market. ...
21
votes
3answers
11k views

How do I implement a Merkle Tree?

I`m slowly implementing some Bitcoin protocols, and I'm not sure how to properly understand the Merkle Tree from the Bitcoin wiki: https://en.bitcoin.it/wiki/Protocol_specification#Merkle_Trees I have ...
6
votes
5answers
3k views

Is there a remote, trustless bitcoin API that doesn't require anything (blockchain/SPV headers) to be stored locally?

This question asks about how to work with bitcoin via an API without requiring a local blockchain. The only answer is about blockchain.info's JSON API, but it appears that unlike the web version of ...
2
votes
2answers
1k views

What is the correct Base58 encoding for this uncompressed Public Key RipeMD hash with a zeros in bits 31, 32, or 33?

My understanding is that Base58Checked is always 34 bytes long, and isn't going to be less than 34 bytes even if the first or last bytes of the RipeMD are zero. If this statement isn't true, then ...
5
votes
2answers
4k views

Is this the proper way to use Bouncy Castle to generate a Bitcoin compatible key?

I'd like to use Bouncy Castle to generate the keypair for use with all *coin variants. Is this the correct implementation to get the correct ECC curve that the *coin variants use? Org....
0
votes
1answer
135 views

Bitcoin cash with bicore and addressindex

Bitcore runs a version of bitcoind where theres address index and we can search any addresses I have implemented the bitcoin insight block explorer and its working perfectly I need to implement ...
1
vote
1answer
68 views

Blockchain gets stucked if no blocks are mined

Yesterday I decided to fork a project, just for fun and to learn more about it. So, I forked a project, I generated my own genesis block, changed timestamps, nounce, keys, reset the min chain work. ...
0
votes
1answer
29 views

Are sockets kept open when connections are made?

The bitcoin protocol says that any given node is connected to at least 8 other nodes. Does that mean that when a client connects to a node and learns about new peers... will the client keep the socket ...
2
votes
2answers
46 views

Mining Bitcoins on PC - Experiment, looking for advice or simple instructions [closed]

I am absolutely new to Bitcoin and mining, I know that mining at home using a PC is not worth even the time and takes years to get any income out of it. The thing is I need to mine at home using a PC ...
1
vote
0answers
34 views

Exchange development good practices

Is there any guide or good practice rules to follow when developing a service that uses the Bitcoin and other cryptocurrencies protocols? For instance, how is the best way to know if a user deposited ...
29
votes
4answers
46k views

How to fork Bitcoin and build own cryptocurrency

Is there any step-by-step tutorial about how to build own cryptocurrency based on Bitcoin code?
7
votes
5answers
982 views

What challenges will bitcoin face in space?

What would the challenges of transacting in outerspace be for bitcoin? What improvements need to be implemented to address these challenges? I'm particularly curious about low-earth orbit.
3
votes
3answers
787 views

Bitcoin communication with non-standard ports

I'm writing a Bitcoin web app that is to be deployed on an external server over which I have no control. I probably won't have access to standard Bitcoin port (8333). Will this cause a problem when ...
2
votes
0answers
55 views

Why is the Serialization limit set to 0x02000000?

In addition to the block size limit, there is a limit on the maximum message size. Is there a rationale behind the 32MB limit set in src/serialize.h or was it picked because it's just a nice round ...
3
votes
4answers
2k views

Is there an API that exchanges USD to Bitcoin?

I'm looking for an API that literally exchanges USD to Bitcoin, not only value. I've been looking all over for an exchange that accepts USD in it's API. I've found tons that will do Crypto => Crypto ...
0
votes
1answer
200 views

How an order fulfillment works

I'm trying to understand how order fulfillment algorithm works from technical point of view. Let's say I created an order to sell 0.8 BTC and buy 5400 XRP along with other orders to sell 0.35 BTC, 2....