All Questions

3,362 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
11 votes
1 answer
372 views

How does this field multiplication in libsecp256k1 work?

I'm looking at libsecp256k1's codebase, for learning reasons (doubt I can contribute with anything useful there). While looking at the field implementation, the implementation of ...
Davidson Souza's user avatar
9 votes
0 answers
177 views

What are the advantages to attackers of different styles of replacement cycle attacks?

In Antoine Riard's original description of replacement cycle attacks against HTLCs, a replacement cycle looks like this: Bob broadcasts an HTLC-timeout (input A, input B for fees, output X) Mallory ...
David A. Harding's user avatar
6 votes
0 answers
135 views

Which wallets are spending P2TR with SIGHASH_ALL?

I noticed there are quite a lot of transactions spending taproot key path inputs that use SIGHASH_ALL instead of SIGHASH_DEFAULT in signatures (around 20% in the last two weeks). Recall that ...
Vojtěch Strnad's user avatar
6 votes
3 answers
17k views

Historical BTC data in JSON

As of now, the only API I can find that serves historical data is https://blockchain.info/charts/market-price?timespan=60days&format=json. It only uses USD, and I need to serve non-USD data. My ...
Christopher Sardegna's user avatar
5 votes
0 answers
127 views

What are the steps to create a block template?

My current understanding is that pool operators create block templates and pool miners solve the math to add it to the blockchain. My question is what are the steps for a pool operator to create a ...
Jake Stanton's user avatar
5 votes
1 answer
229 views

How to compute the expected number of sats to arrive in a probabilistic payment flow?

Look at the following network example: Assume S wants to send 3 sats to R. You can further assume that S has enough liquidity in each of its local channels to send up to 3 sats. Also assume the ...
Rene Pickhardt's user avatar
5 votes
0 answers
76 views

Bitcoin over Tor and man in the middle attack: risks mitigated yet?

This paper explains how combining Bitcoin and Tor creates an attack vector. A man in the middle can control the information flow between all users who connect over Tor. This paper is from 2014. Has ...
user270124's user avatar
5 votes
0 answers
172 views

How to approach building a custom UTXO index on top of a full-node

I want to avoid physically importing addresses into a wallet. I want to write a UTXO indexing system on a per-address basis. I often wonder how a wallet can keep track of all of its addresses' UTXOs, ...
Anonona's user avatar
  • 215
5 votes
1 answer
2k views

How to build Bitcoin binaries for Windows on Ubuntu using cross-compile

I am trying to build Bitcoin 0.13 for Windows. I've always used this guide for building previous versions. Now seems that developers have changed their mind regarding Windows, and the new way seems ...
user197675's user avatar
5 votes
1 answer
220 views

What is meant by getnetworkinfo: networks: reachable = false

What do all the reachable: false's mean under each network? My node is connecting fine to other peers both in and out, I assume via IPv4 (since I didn't configure anything else special). Is my node ...
pinhead's user avatar
  • 5,084
5 votes
0 answers
311 views

BTCJam API 500 errors

I am currently trying to set up an application using the BTCJam api. I think the api could be very useful, but I have been unable to get it to work fully, and since support isn't responding, I thought ...
Paul's user avatar
  • 171
5 votes
1 answer
2k views

addnode in bitcoin.conf doesn't work (Regtest mode)

I'm trying to make to nodes on the same computer communicate. I set up two bitcoin folder with two bitcoin.conf files. bitcoin.conf in the second node is the following: rpcuser=bitcoinrpc ...
Tommaso Bendinelli's user avatar
5 votes
2 answers
950 views

bitcond and bitcoin-Qt system configuration and bandwidth requirements

What is the best operating system configuration for a computer to run (bitcoind or bitcoin-Qt) and (BFGminer or CGMiner) under Linux, assuming that it will be connected to a 3 Terrahash mining rig on ...
A.Miner's user avatar
  • 51
4 votes
0 answers
17 views

Do I have to backup ~/.cashu/wallet/wallet.sqlite3 of my nutshell wallet in order to backup my ecash tokens?

Upon inspection with sqlite, wallet.sqlite3 has following tables: balance dbversions keysets proofs seed balance_used invoices nostr proofs_used. As a wallet holder, do I need to back up the file ...
John Smith's user avatar
4 votes
0 answers
142 views

How does bitcoin core handle service flag spoofing?

There are 5 service flags in src/protocol.cpp: static std::string serviceFlagToStr(size_t bit) { const uint64_t service_flag = 1ULL << bit; switch ((ServiceFlags)service_flag) { case ...
user avatar
4 votes
1 answer
160 views

Problems with multiple wallets on RPC in bitcoin-core

I have been playing around a bit with Bitcoin Core (version 23.0), more specifically connecting to different wallets in Bitcoin Core through RPC in Python. I have found this library and tried to ...
chilixxd's user avatar
4 votes
0 answers
450 views

P2TR bech32m mismatch

When attempting to create a p2tr address using the private key 0x0000...01 I get, bc1pmfr3p9j00pfxjh0zmgp99y8zftmd3s5pmedqhyptwy6lm87hf5sspknck9 which does not match the provided test vectors provided ...
m1xolyd1an's user avatar
  • 5,626
4 votes
0 answers
158 views

Sign lightning channel creation PSBT with Golang

I'm trying to open a channel on regtest with LND v0.13.0-beta.rc3 using their PSBT workflow to allow for remote signing. I've done the following steps: I create a regtest wallet using the BIP39 ...
SamCymbaluk's user avatar
4 votes
0 answers
367 views

How are taproot scripts represented in general?

I'm pretty familiar with the opcode style of writing down scripts. I can understand the stack-based language nature of bitcoin script where you can write down different script spend paths via ifs like ...
B T's user avatar
  • 1,638
4 votes
1 answer
571 views

Accepting micropayment donations via Lightning Network - what is the most efficient / recommended architecture?

The difficulty that I am experiencing at the moment - how to accept Lightning Network micropayments donations supporting (shameless plug): https://genesis.re/wiki#Plan_B Zap / Joule: I send on-chain ...
Mars Robertson's user avatar
4 votes
0 answers
215 views

libwallycore error installing LND on Ubuntu 18.04

I'm setting up an LND node on Ubuntu 18.04. I've installed python3, and cloned the repo. I ran configure, and get this error on the make command: checking byteswap.h, usability... no checking ...
user99201's user avatar
  • 129
4 votes
1 answer
1k views

Generate addresses from Trezor's xPub using Python

I am trying to generate BIP32 HD addresses from my Trezors xPub key. I keep getting errors with most of the libs our there. What am I missing? pywallet: from pywallet import wallet xpub = '...
Katafalkas's user avatar
4 votes
0 answers
895 views

To sign raw transaction with Segwit Address in the TestNet

I am using Bitcoin core 0.14.1 testnet. I created a Segwit address. transfer some coins to this address. Now I want to spend it. I created a raw transaction using console command i.e. ...
DOLLY PATWA's user avatar
4 votes
1 answer
2k views

Building Signed Bitcoin Transaction in Java

I have been attempting to build my own raw transaction generator in Java which I can then broadcast on the testnet network. The problem is when I attempt to broadcast the transaction it says there is ...
user2965346's user avatar
4 votes
0 answers
779 views

How to Use TransactionBuilder in NBitcoin

I have used this code. It returns a success, but does not send bitcoin. var txRepo = new NoSqlTransactionRepository(); // Let’s me introduce you, Alice, Bob, Satoshi, and Nico with their ...
Hitesh's user avatar
  • 51
4 votes
0 answers
218 views

How does schnorr signature construct multisig functionality?

How does the multiparty schnorr signature work and enable multisig functionality in Bitcoin? What are its limitations? Can we construct any m of n signature? Is there anyway to hide the signers among ...
abeikverdi's user avatar
4 votes
1 answer
248 views

Simulating -walletnotify option in Electrum

When run in daemon mode, bitcoind accepts a parameter -walletnotify=<cmd> which runs <cmd> whenever a wallet transaction changes due to sending/receiving. Is there a similar feature in ...
Mr. Llama's user avatar
  • 141
4 votes
0 answers
655 views

Bitcoinj: How to fix error "You should use Context.propagate() or a ContextPropagatingThreadFactory"

I'm using bitcoinj from a Scala application... and when I start it, I always get the following errors: [error] o.b.c.Context - Performing thread fixup: you are accessing bitcoinj via a thread that ...
j3d's user avatar
  • 197
4 votes
0 answers
419 views

bitcoin:uri for sending payments to multiple addresses

Lets say I want a donate bitcoin button/QR code to send to multiple recipients in different ratios. As in send 50% to wallet 1. Send 25% to wallet 2. Send 25% to wallet 3. Is there any way to do ...
dessalines's user avatar
4 votes
1 answer
1k views

php private key to wallet import format (wip)

I have been writing a php file intended to create a bitcoin private key and change it to wallet import format. The issue is when I try a command in a gnome-terminal such as: bitcoin-cli importprivkey ...
Gemohn Herbile's user avatar
4 votes
1 answer
183 views

How many bitcoins would it require for a sustained DOS attack on bitcoin network?

How many bitcoins would it require for a sustained DOS attack on bitcoin network? Without transaction fee, how many bitcoins would that be? How many transactions could we generate with 1 BTC ...
vi.su.'s user avatar
  • 1,852
4 votes
0 answers
413 views

How to explore transaction chain via Original Bitcoin API as blockexplorer does it

Is there any possibility to explore transaction chain via Original Bitcoin API (https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list) as the blockexplorer does it. If not, why?
tokyo's user avatar
  • 65
4 votes
1 answer
508 views

Cryptocompare API

Anyone here using cryptocompare api? Where would be the best place to ask questions about it? I am just starting with it and for example I have stumbled upon few issues. Like, coin tickers with an ...
IgorD's user avatar
  • 41
4 votes
2 answers
693 views

Wallets that support payment channels?

I know that maybe it's a bit early to start asking Wallets to implement Lightning Network connections even if the majority don't support SegregatedWitness yet. But how about Payment Channels? In ...
knocte's user avatar
  • 1,764
4 votes
2 answers
3k views

Where to find P2pool networks.py settings for altcoins?

Is there a forum post or website where all the altcoin networks.py settings are being shared? I can see the P2pool forks on Github where people commit their own networks.py settings back to their own ...
tvb's user avatar
  • 139
4 votes
2 answers
200 views

What are the downsides of integrating accumulators like Utreexo to bitcoind?

Inspired by the discussion on this question, I wonder what the downsides would be of adding accumulators like Utreexo (site, paper) to bitcoind? On the positive side, it seems like a huge improvement ...
Rene Pickhardt's user avatar
4 votes
1 answer
156 views

How does ban score algorithm calculate ban score for a node?

Specifically I want to know, for which types of misbehaves does ban score algorithm give a ban score to a node?
Sakib's user avatar
  • 41
3 votes
0 answers
389 views
+50

Lightning Network Nodes do not report Bolt9 Features

Looking at the output of the describeGraph command of my node (LND), I have seen that my node detects approximately 19,000 nodes. Of those 19 thousand, 6 thousand do not report any bolt9 feature. lnd@...
polespinasa's user avatar
3 votes
0 answers
33 views

Timelocked bribing

Did anyone observe any instance of Timelocked Bribing in Bitcoin transaction? Are there any specific articles that points out that the attack has been mounted in reality?
Subhra Mazumdar's user avatar
3 votes
0 answers
31 views

Build phase fails with undefined reference to `evhttp_uridecode`

I try to build Bitcoin Core on my Ubuntu 23.10 machine using the "Build Unix" documentation page but it fails with undefined reference to evhttp_uridecode. Here are the details: I started by ...
Hassen's user avatar
  • 131
3 votes
0 answers
35 views

Stuck low-feerate transaction after forced closed channel

Someone cooperatively closed a channel with me, then forced closed it later. It has not confirmed. In fact, it is not even showing up in mempool, which says "waiting for transaction". I'm ...
Ryan's user avatar
  • 31
3 votes
0 answers
64 views

bitcoind still running after 'bitcoin-cli stop'

I'm running Debian 11, all updates installed. 12gb RAM, massive internal SSD for storage. $ /usr/local/bin/bitcoin-25.0/bin/bitcoin-cli stop has worked well shutting down bitcoind on my computer until ...
Lilacrail's user avatar
  • 141
3 votes
0 answers
62 views

Bitcoin core shutdown after running for about 1 day

I have my bitcoin core daemon up and running on Ubuntu. However it always stops after running for serveral hours or 1 day. Here's the debug.log before it stopped. 2023-11-23T18:04:42Z [net] Saw new ...
daniaoren's user avatar
3 votes
0 answers
63 views

the switching timing between high-bandwidth mode and low-bandwidth mode in CompactBlockReray

If the Compact Block transmission node is bandwidth-limited, there is a statement in bip152 implemention Note that an 'inv/headers' is sent. Are there specific thresholds or settings for this in the ...
masuda's user avatar
  • 81
3 votes
0 answers
56 views

Cannot find bitcoin.conf on macOS

I want to run a pruned node. I mistakenly referred to a guide for a full node to connect to Sparrow wallet, which required adding server=1 and txindex=1 in the bitcoin.conf file. I reached this file ...
Seth's user avatar
  • 31
3 votes
0 answers
28 views

Should an even Y coordinate be enforced after every key-tweak operation, or only at the end?

This is a very niche question regarding BIP340 and key tweaking with even-only public keys. I feel my question may be a matter of opinion, since there doesn't appear to be an accepted right / wrong ...
cmdruid's user avatar
  • 31
3 votes
1 answer
64 views

How to make sure the user receives lightning payment?

I am working on a side project to allow users to receive some payments from it. When a user clicks a button to withdraw to a lightning address, my webapp makes a request to the host of that lightning ...
Sergei Basharov's user avatar
3 votes
1 answer
130 views

How to avoid a force closure of a channel in the future

On May 14th our channel with LNBIG-42 was force closed and has only returned to the wallet minus some fees a few days ago. https://mempool.space/tx/...
Orange_Bitcoin's user avatar
3 votes
0 answers
78 views

Setting up to create PSBTs using Bitcoin Core from 10 year old non-deterministic wallet

I have an old wallet from 10+ years ago. It was created using an old version of Bitcoin Core before deterministic wallets were a thing. I have it now on an offline computer that has Bitcoin Core 21.0....
Sarlat's user avatar
  • 31
3 votes
0 answers
85 views

What is the difference between singlesig and multisig xpubs?

When exporting the xpub from my SeedSigner, I'm asked whether to export the "singlesig xpub" or "multisig xpub." I understand the use cases for each but from a technical standpoint,...
Oliver Offing's user avatar

15 30 50 per page
1
2 3 4 5
68