Questions tagged [development]

The creation and ongoing work for different existing and future Bitcoin-related projects and source code.

Filter by
Sorted by
Tagged with
0 votes
1 answer
119 views

Configuring electrum wallet with command line only

I successfully installed electrum on an ubuntu server using the first ref from google search. But how I can configure it without GUI I didn't find.
1 vote
2 answers
208 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 develop ...
0 votes
1 answer
296 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
1 answer
1k 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
1 answer
177 views

Manual work as source of entropy

Working on an opensource air-gapped crypto vault, in which I have the regular method of relying on OS to provide cryptographically secure random source and use that to generate the mnemonic phrase. ...
-2 votes
1 answer
54 views

What is the step-by-step algorithmic process to find the modular multiplicative inverse of (n-1) mod np, where (n-1) and np are not coprime?

Having perused the stackexchange, I found some similar questions, but am having difficulty understanding how to arrive at the solution to (n-1)*x=1 mod np, where: n: Finite group order of the Bitcoin ...
1 vote
2 answers
31 views

Where is a good source of information for procedural algorithm to program my own Bitcoin QR code generator?

Not trusting those already available QR code generators available, I would want to program my own. The idea is to input a Bitcoin key ( private or public ) and the program would simply generate the ...
0 votes
0 answers
30 views

How to calculate BTC mining revard based on hashrate and historical data

I have a problem with calculations on the topic of cryptocurrency BTC, to be precise: manually calculate the estimated reward for mining. manually calculate the estimated energy consumption. For ...
4 votes
5 answers
5k 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 ...
0 votes
0 answers
28 views

Introduction of cryptocurrency payments. Generation of child addresses of a cryptocurrency wallet

There is a task: to introduce payment with bitcoins. I found a way to generate addresses for the same wallet. And now I want to make sure that each user has his own address to which he will send the ...
0 votes
1 answer
72 views

decoding transaction hash returned in rpc call getrawtransaction

hex: ...
1 vote
1 answer
166 views

How to call `getblocktemplate` without running a full node?

I was trying to get into bitcoin mining but I could not find any useful information on calling getblocktemplate without downloading the entire blockchain. Is there a way to get blocks for mining ...
1 vote
2 answers
493 views

Do I need to download the entire blockchain in order to use bitcoin-cli?

I want to try and compile and run bitcoin-cli locally. Do I need to download the entire blockchain first?
0 votes
2 answers
93 views

Roadmap for beginners developers

I am Brazilian and would like to program functionality for Bitcoin and LN. But I have no knowledge of programming and am lost as to what to study. Could you help me? What do you recommend? *i do know ...
0 votes
0 answers
267 views

RSZ value with witness data

Have anyone got a script on how to find the RSZ value of a bitcoin transaction with witness data, scanned just by inputting the hashes? Will you please share your code? Or at least, point me to the ...
3 votes
1 answer
151 views

How do I maintain a continuously updated copy of a local mempool?

Let's say I want to build a database of transactions that is continuously being updated from a locally running Bitcoin Core node using JSON-RPC and ZeroMQ. My concern is how to make it robust against ...
0 votes
1 answer
151 views

How to "Autoforward" incoming BTC using Electrum

We would like to generate multiple addresses in Electrum, receive BTC to these addresses on a daily basis and auto-forward them to another address automatically. So the flow would be this: BTC Sent ...
0 votes
1 answer
927 views

HD Wallet Child Private Key Derivation Function

I was trying to understand the specs on CKD function from both the bip32 standard and Mastering Bitcoin book, I couldn't understand how a private key is derived from the left side of the extended key. ...
2 votes
1 answer
293 views

Is there a difference between OP_PUSHBYTES and OP_PUSHDATA

In some documentation about Script we sometimes have to use OP_PUSHBYTESx or OP_PUSHDATAx to indicate that some number of bytes will be an element to read. They seem to do the same thing so is there a ...
11 votes
1 answer
1k views

Turing completeness of Bitcoin Script

For me, scripts are one of the most interesting features of Bitcoin. They provide possibilities which have no equivalent in classical currencies. However, the wiki states It is purposefully not ...
3 votes
3 answers
103 views

Problems about update of protocol of bitcoin

I am new to crypto. I want to ask if in the future, bitcoin has a significant protocol update, will there be a recycle (or some kinds of buy-back or repurchase?) of old tokens or an automatic update ...
5 votes
2 answers
958 views

How do I program smart contracts?

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

How to develop bitcoin sidechains/second layer solutions?

If I have an idea for a use case that requires transparency and ultra-secure final settlement, how do I go about programming this to be a side chain/2nd layer solution on the bitcoin network? Is there ...
1 vote
2 answers
77 views

I'm creating a bitcoin wallet but I can't figure out how to send transactions with a low fee

I created a bitcoin wallet https://github.com/Grantrocks/bitcoingadgets. After 2 days of constant errors, I got it to send btc. But I can't seem to get it to send btc somewhat fast at a low fee. I use ...
39 votes
4 answers
68k views

How to fork Bitcoin and build own cryptocurrency [closed]

Is there any step-by-step tutorial about how to build own cryptocurrency based on Bitcoin code?
6 votes
2 answers
3k views

How to find all UTXOs?

I know that UTXOs are stored in chainstate database. But how can I get them in simple txt view? Not balances, but each UTXO.
26 votes
5 answers
10k views

how to monitor +20,000 addresses for new received transactions?

I have around 20000 generated addresses which I want to monitor for new transactions. More addresses should probably come. Customers should use every address only once but I would like to monitor ...
3 votes
1 answer
939 views

Is there a bitcoin api?

Sorry if my question sounds silly, I get downvoted for some reason everytime I ask it. I just need some help Today I saw the "richest bitcoin wallets" chart and I was inspired to program the ...
0 votes
2 answers
522 views

How do you hash data for mining?

I was examining the block hashing algorithm and I tried to hash some blocks with my c++ sha256 to check results. The hashes were wrong all the time so I thought I couldn't build the block header ...
0 votes
1 answer
91 views

do Bitcoin full node onions also relay non-bitcoin traffic?

During the past week or so I am setting up a Bitcoin core full node on Raspberry Pi and making it as secure as possible. In the public mind, the onion sites and Darknet are associated with many things ...
1 vote
1 answer
104 views

Handling 'Has SIGHASH_SINGLE' flag for psbt2 (BIP370)

BIP370 specifies a bit flag (bit 2) in PSBT_GLOBAL_TX_MODIFIABLE field, that "indicates whether the transaction has a SIGHASH_SINGLE signature who's input and output pairing must be preserved&...
2 votes
3 answers
607 views

Would writing one's own cryptocurrency in a language other than C/C++ be stupid?

I'm curious from a performance perspective if writing a cryptocurrency from the ground up in a language other than C/C++ be stupid? For example, if I wanted to write a cryptocurrency and protocol in ...
12 votes
3 answers
8k views

How can I generate a large number of Bitcoin addresses?

I would like to generate a large number of public Bitcoin addresses (several hundred thousand) quickly and efficiently into a simple text file. What would be the easiest way to get this done? I'm just ...
3 votes
1 answer
663 views

What is a correct extranonce2 value in the stratum protocol?

I'm developing a stratum mining client. I read on stratum v1 docs on braiins.com how mining work is done on the stratum protocol and that the coinbase is done by concatenating coinb1+extranonce1+...
0 votes
0 answers
71 views

Can I integrate a decentralised wallet in a website in PHP?

Can I integrate a decentralised wallet in a website in PHP? A decentralised wallet will act as service but I won't have access to the funds of users however users should be able to access their wallet ...
0 votes
2 answers
60 views

Help a newbie. Need software [closed]

I want to invest in a mining farm. Everywhere I find only pieces of information. Help please - you need: What software is needed and for what. Where to begin. Equipment and installation conditions. ...
44 votes
1 answer
10k views

What do the different .dat files contain?

What data do different Bitcoin .dat files contain? How about the other files in the same folder? The wallet.dat file is somewhat documented and there are some ways to convert it to human-readable ...
6 votes
1 answer
157 views

Will LN liquidity advertisements and dual funding allow for third-party purchased liquidity ("sidecar channels")?

Third-party purchased liquidity ("sidecar channels") are a feature of Lightning Pool where Alice pays Bob to fund a new channel to Carol. Although this seems like an indirection (Alice ...
0 votes
1 answer
75 views

Can you program a transaction to automatically run once fees are low?

Can i program a bitcoin transaction to run when the network is not as busy or when fees are low? If you are not in a rush to complete trx.
4 votes
1 answer
173 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?
1 vote
1 answer
158 views

Why is my target different from a miner?

I'm developing a miner to study how mining works and I've connected it to a pool using Stratum. When I use the bits provided by the pool to calculate the target, it is different from the miner that I ...
3 votes
1 answer
6k views

Sending bitcoins to same address

I am using the BitcoinJ API to create my wallet. When I create a transaction, I provide the change address to which change should be sent. For example: let there be 1 bitcoin at address A; then I ...
1 vote
0 answers
129 views

complete bitcoin script example

I am trying to learn how to write my own script from scratch. I have seen about a dozen examples by googling but non of them are complete. I am aware of btcdeb as well. Is there a tutorial that covers ...
-3 votes
1 answer
145 views

If the Lightning Network is so great, why is it "level 2", not stable and not built into Bitcoin Core? [duplicate]

Lightning Network, as it's described, seems to solve all the problems with Bitcoin. I'm unable to accept payments due to the insane fees, but would be able to if Lightning Network were supported. But ...
1 vote
1 answer
50 views

Test environment for bitcoin transactions/wallets

I want to build a pet project which would use bitcoin for sending/receiving and see balance of wallets involved changed. What are my options for having a local env that would allow me to perform these ...
9 votes
2 answers
2k views

Is there developer documentation for the Bitcoin Core source code?

Is there a documentation somewhere to understand the C++ code of Bitcoin Core (available on Github) "from a to z" and being able to recreate it ?
1 vote
2 answers
2k views

How do I use Blockchain.info's Receive Payments API with node JS / Express?

Blockchain has great documentation for PHP, but nothing really for node! Does anyone here have any projects,where they used the blockchain.info Receive Payments API, in their node apps, to receive ...
0 votes
1 answer
211 views

Unable to sweep account using WIF, Green wallet says "No UTXO found"

I am trying to learn the process BTC transactions. In the process, I generated Private key : 82e8034869c77744655899d450f9fe2f01fad030bf8af4ea75b310d1a140f554 Corresponding address generated : ...
-1 votes
1 answer
79 views

How to add new btc block to blockchain [duplicate]

Please let me known that "How I add a new BTC block to blockchain?" as a sole miner.
1 vote
0 answers
146 views

Stratum: How many shares should I submit per job?

I'm implementing a bitcoin CPU miner just for fun in python. I've been reading a lot about bitcoin and the protocol pools use for communication and coordinating workers but there is a key concept I ...

1
2 3 4 5
9