This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void BuildProofOfTumbleBitConceptTransactions() | |
{ | |
uint256 txIdToSpend = _qBitClient.GetBalance(_fundingAddress, unspentOnly: false).Result.Operations.First().TransactionId; | |
Transaction txToSpend = _qBitClient.GetTransaction(txIdToSpend).Result.Transaction; | |
var tOfferExtKey = _seed.ExtKey.Derive(1, false); | |
var tOfferDestination = tOfferExtKey.ScriptPubKey.GetDestinationAddress(_network); // mk1soVb7Se1t99v7APGqiXofr2pKVS7hN5 | |
var tFulfillExtKey = _seed.ExtKey.Derive(2, false); | |
var tFulfillDestination = tFulfillExtKey.ScriptPubKey.GetDestinationAddress(_network); // n4mey3skuXQna149vUaanuAPyEDiunsryT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void BuildProofOfTumbleBitConceptTransactions() | |
{ | |
uint256 txIdToSpend = _qBitClient.GetBalance(_fundingAddress, unspentOnly: false).Result.Operations.First().TransactionId; | |
Transaction txToSpend = _qBitClient.GetTransaction(txIdToSpend).Result.Transaction; | |
var tOfferExtKey = _seed.ExtKey.Derive(1, false); | |
var tOfferDestination = tOfferExtKey.ScriptPubKey.GetDestinationAddress(_network); // mk1soVb7Se1t99v7APGqiXofr2pKVS7hN5 | |
var tFulfillExtKey = _seed.ExtKey.Derive(2, false); | |
var tFulfillDestination = tFulfillExtKey.ScriptPubKey.GetDestinationAddress(_network); // n4mey3skuXQna149vUaanuAPyEDiunsryT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
private static readonly Network _network = Network.TestNet; | |
private static readonly BitcoinExtKey _seed = new BitcoinExtKey("tprv8ZgxMBicQKsPeGSjHbcTdpBxmVvRmySiUkQFBLruRTrn2dXAtn2rqApjVUgqsFkhfJZLYy8kXgRaEgZh7M3zdxyabF1TcwoxZsgpmAnHYyH"); | |
private static readonly ExtKey _fundingExtKey = _seed.ExtKey.Derive(0, false); | |
private static readonly BitcoinAddress _fundingAddress = _fundingExtKey.ScriptPubKey.GetDestinationAddress(_network); // mkvRuHAv3qek4mP3ipjqFnaFXj4d2kKit3 | |
private static readonly QBitNinjaClient _qBitClient = new QBitNinjaClient(_network); | |
static void Main(string[] args) | |
{ |
NewerOlder