Nicolas Dorier
  • Member for 7 years, 1 month
  • Last seen more than a week ago
How to use NBitcoin for BIP32 wallets
Accepted answer
10 votes

when you are doing BitcoinAddress address1 = **pubKey**.Derive([some client data]).PubKey.GetAddress(Network.Main); You are getting the bitcoin address, but not the master public key. (ExtPubKey) A ...

View answer
Blockchain programming books C#?
8 votes

I just published a book about it. It's called "Blockchain Programming in C#". If you're looking for tools written in C#, you should try NBitcoin. You can also find the project on GitHub. I've also ...

View answer
Bitcoin HD Wallet using C#
4 votes

I advise you just to rely on https://github.com/dgarage/NBXplorer/ This is an API more flexible and more stable than Bitcoin Core to manage HD wallets. There is a C# client, and it integrate nicely ...

View answer
How to create the <sig> <PubK> part in "scriptSig"?
Accepted answer
4 votes

First question has a long answer, because it depends on the scriptPubKey, but also of the sigHash flag, I assume you are speaking about classic P2PKH transactions. (ScriptPubKey expose the condition ...

View answer
How to sign a SegWit transaction via NBitcoin?
4 votes

signing with Segwit is in no way different from signing with P2SH or P2PKH. If you want interoperability, you need to use Segwit wrapped into P2SH. Please check https://programmingblockchain.gitbooks....

View answer
Is there bitcoin implementation in python or C#?
4 votes

NBitcoin is the most complete lib to date, here are links and articles about it. NBitcoin Github : https://github.com/NicolasDorier/NBitcoin NBitcoin Nuget : https://www.nuget.org/packages/NBitcoin/ ...

View answer
HD wallets with an exposed child private key
3 votes

I don't know where you found this formula, here is the code to derivate a childkey, the BIP is here, it does not look like your formula, but I'll try to respond to some of your questions. I just got ...

View answer
Is it possible to connect to BTCPay server remote c-lightning node?
Accepted answer
2 votes

Port 9735 is the lightning port. What BTCPay wants is the API. C-Lightning does not support TCP natively, but one can use socat as I did in the docker entrypoint to bridge unix to TCP.

View answer
building bitcoin-qt.exe using Visual Studio 2017
2 votes

There is documentation about how to build with visual studio on this link. It works fine for me.

View answer
How can I integrate Bitcoin payments into my website created in C#?
2 votes

Here is a book which teach you some basics of bitcoin programming https://programmingblockchain.gitbooks.io/programmingblockchain/content/

View answer
How do I deploy Qbit Ninja Server?
2 votes

sorry there is no documentation. The console application QbitNinja.Console.Listener is an app which connect to a trusted full node and push the data into Azure Storage. Due to latency, you should run ...

View answer
Options for a Client Only C# application
2 votes

NBitcoin supports connection to the bitcoin network. NBitcoin Github : https://github.com/NicolasDorier/NBitcoin NBitcoin Nuget : https://www.nuget.org/packages/NBitcoin/ Intro : http://www....

View answer
NBitcoin - how to set RBF to true in order to give higher fee for transaction
1 votes

NBitcoin just follow BIP125 public bool RBF { get { return Inputs.Any(i => i.Sequence < 0xffffffff - 1); } } If you are using the TransactionBuilder for creating a ...

View answer
'The node is not in a connected state' error when trying to execute OP_RETURN transaction with NBitcoin
1 votes

I think the problem is that there is only OP_RETURN, I remember seeing in the Bitcoin code that only OP_RETURN without anything else is forbidden. Except that, your code looks like what is in my book ...

View answer
How does "headers first" affect BLKxxxx.dat structure?
Accepted answer
1 votes

Having tested with the BlockStore of NBitcoin, the format is the same. The BLK files are just almost raw blocks (it has a small additional header) Any stored block in this file has the network to ...

View answer
Testing blockchain forks
1 votes

Depending on your language and bitcoin library, you can simulate a fake bitcoin peer. This is what I do when I develop with NBitcoin. (C#) Basically, I setup 2 peers, the "client" and the "server", I ...

View answer
How do I get to the value in the 'scriptPubKey' part of the transaction ?
1 votes

If you are using C# with NBitcoin var address = new Script("OP_DUP OP_HASH160 ... OP_EQUALVERIFY OP_CHECKSIG").GetDestinationAddress(Network.Main); It has the nice effect to work with P2SH addresses ...

View answer
Matching KeyPath in application with Wallet32 Keypath for Bip44 wallets
1 votes

Response on stackoverflow https://stackoverflow.com/questions/27299204/matching-keypath-in-application-with-wallet32-keypath-for-bip44-wallets/27627358#27627358 Short answer : now the "44'/0'" ...

View answer
Using NBitcoin or C# to derive Litecoin and Ethereum Addresses from Master HD Key
0 votes

We documented on https://programmingblockchain.gitbook.io/programmingblockchain/key_generation/bip_32 That said, for tracking a hd wallet I advice you to use https://github.com/dgarage/NBXplorer/ this ...

View answer
Is There a Safe Way to Decentralize or Spread Ownership of a Company Using Bitcoin or Altcoins?
0 votes

1.Is there a way to limit total possible holdings of the coin/share to say 1. i.e. the wallet couldn't hold more than 1 coin with the purpose of an individual only being able to hold 1 share of ...

View answer
Can a 2 of 3 multisig transaction signature be revoked before it gets confirmed by the miners?
0 votes

In such a scenario, the best way to deal with it actually is to use an trusted third party escrow. We can imagine banks or popular car sellers providing such services in the future. Bob would sends ...

View answer