Bitcoin Forum
June 21, 2024, 11:43:53 PM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 [8] 9 10 11 »
141  Bitcoin / Development & Technical Discussion / Re: how to use wallet notify (bitcoind) ? on: April 27, 2016, 06:35:19 AM
If you potentially need to send refunds then the only correct way is to ask the user to provide a refund address at the time of payment.

The concept of a single guaranteed "from address" simply does not exist in bitcoin.

Quote
how resolve this problem?
what function rpc-api need use?

i need know sender wallet for refund amount..
142  Bitcoin / Bitcoin Discussion / Re: Decentralized AirBnB and Uber -- somebody's really working on it! on: April 27, 2016, 06:27:18 AM
can someone please explain how fermat differs from maidsafe?   
143  Bitcoin / Development & Technical Discussion / Re: How to run a LN hub? on: April 24, 2016, 08:17:18 PM
from: http://bitcoin.stackexchange.com/questions/43827/is-the-lightning-network-a-proof-of-stake-system

Quote
Calling Lightning a Proof-of-Stake system is orthogonal to the concept usually labeled as PoS. Him having done so will just generate loads of confusion.

What we usually describe as PoS is a mechanism to achieve distributed consensus among a network of participants. Staking there is providing updates to the whole network's state, where you earn fees for contributing to the validity and the security of the network.

On the other hand, Lightning Network is a system of bilateral smartcontracts, where you may earn a fee by providing liquidity to other users. Nodes along a payment path don't provide any proof whatsoever, they merely forward a payment. There is no global consensus in Lightning, contracts are created, verified, and executed between two or a small number of participants. Any need to create consensus in the case of disagreement is provided by the proof-of-work of the Bitcoin network.

In other words, it's not really proof of stake.  You can earn fees, but not "interest".  Also, Lightning Network devs are insistent that the fees earned will be tiny because there is near zero cost to entry.
144  Bitcoin / Development & Technical Discussion / Re: RFC: proposition to extend BIP44 - extended HD Wallet on: April 20, 2016, 06:37:36 PM
Quote
-- personnal wallet                      /0'/
    -- current account                   /0'/0'/
        -- restaurants                   /0'/0'/0'/
        -- beers                         /0'/0'/1'/
        -- food                          /0'/0'/2'/

What does this even mean?

Are you implying that "current_account" can access the keys of restaurants, beers, and food, in order to present a summary balance for all three?   ok, I can see that.    But then what if I try to make a spend from "current account"?  Does it use a key from restaurants, or from beers, or from food, or from itself?   what if "current account" does not have any keys with funds but "beers" does?

To me, the concept doesn't really make sense.

Now, if you call "restaurants" a wallet, and "current account" and "personal wallet" wallet groups, then that makes sense.  So a wallet group could aggregate wallet info in read-only fashion.    And the grouping data is basically app-specific and does not have to be portable between wallet software.

Admittedly, it would be nice if there were a common format for specifying wallet names, as well as wallet groups.  But that's outside the scope of Bip 44.
145  Bitcoin / Development & Technical Discussion / Re: how to use wallet notify (bitcoind) ? on: April 20, 2016, 05:25:45 AM
    -alertnotify=<cmd>    Execute command when a relevant alert is received or we see a really long fork (%s in cmd is replaced by message)
   -blocknotify=<cmd>    Execute command when the best block changes (%s in cmd is replaced by block hash)
    -walletnotify=<cmd>    Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)


So for individual transactions, you would want to use walletnotify, eg:

Code:
bitcoind -walletnotify=/path/to/script.php %s

Then in script.php, you could do something like:

Code:
<?php
$tx 
$argv[1];
$txinfo json_decode( `bitcoin-cli gettransaction $tx` );
if( 
$txinfo['confirmations'] >= ) {
    
// update mysql if necessary.
}
of course with sanitization, error checks, etc....   ;-)


If you are likely to have more than one tx in a given block, a more efficient way to do it can be to include the block-hash with the tx in the db, so you can look up all tx by block.  Then use blocknotify instead of walletnotify.


edit:  and don't forget that the txid can change due to transaction malleability. 
146  Bitcoin / Development & Technical Discussion / Re: When deriving addresses from a PubKey, when to stop checking addresses for BTC? on: April 19, 2016, 05:52:28 PM
The default is to stop after 20.   Unfortunately some wallet software such as very old versions of Copay generated a new address each time the user clicks "receive" button, and therefore may have gaps larger than 20.   As far as I know, they all use contiguous addresses.  Also, if you need change addresses you must check (relative) 1/n in addition to 0/n.

If you're just looking for a quick tool for wallet discovery, you may find this helpful:
CLI: https://github.com/dan-da/hd-wallet-addrs
Web: https://mybitprices.info/hd-wallet-addrs.html
147  Economy / Exchanges / Re: BTC2BID.com - A new person to person exchange platform - 10 USD Bonus on: April 18, 2016, 07:57:54 PM
Quote
then, after just a mobile phone verification, he will be able to start trading

then, I won't be using this service.
148  Bitcoin / Development & Technical Discussion / Re: Spawn & distribute private blockchain networks with Docker, comments appreciated on: April 16, 2016, 08:25:13 PM
and this code should be trusted because.....?
149  Bitcoin / Development & Technical Discussion / Re: Anonymity in the Bitcoin: Splitting Transactions on: April 10, 2016, 01:25:26 AM
I took a quick look at the NAV Coin website.   The following text is enough to give me major doubts.

Quote
NAV Coin is the worlds first fully anonymous cryptocurrency. NAV Coin offers optional anonymous transactions that are sent through our double encrypted network of servers which all run on decentralized block chain technology.

fully anonymous... ok cool!     except:   optional anonymous transactions.  fail.

imho the the only coin that may ever be able take the mantle away from bitcoin is one that makes all transactions anon by default so that the funds are fully fungible.   If anon tx are an optional step then many/most will not use them and thus any anon tx automatically look suspicious and are also easier to de-anon using various techniques because they are only mixed in with a small subset of total tx.

I did not even get as far as trying to figure out HOW the anon tech works.  The above text alone is enough to sour me on the concept.  I don't mean to be a downer, just calling it like I see it.


Hi there,

Are you are aware that NAV coin is has a fully anonymous transaction system and a fully anonymous chat system. Check it out http://www.navajocoin.org/ They are a great coin to invest in at the moment as well as they are in process of decentralising their anonymous system. Happy trading Smiley
150  Bitcoin / Project Development / Re: [ANN] bitprices : a price history reporting and auditing tool. on: April 10, 2016, 01:13:16 AM
thx, if you get a chance please try it out with a real wallet (all addresses in wallet) and let me know how it goes for you.

Very cool project. I tried the pizza address and that is crazy to see the history.  I tried one of mine and it worked well.  Nice work.
151  Bitcoin / Project Development / Re: [ANN] bitprices : a price history reporting and auditing tool. on: April 08, 2016, 11:35:16 PM
@patatas  I almost forgot.  I was messing around with toshi for a while before I settled on btcd, and I actually implemented a patch for filtering by address in toshi.   I submitted it but they wanted some changes I haven't had time to make, so for now the only way to get it is from my forked repo here:

https://github.com/dan-da/toshi

The pull request is here:
https://github.com/coinbase/toshi/pull/208
152  Bitcoin / Project Development / Re: [ANN] bitprices : a price history reporting and auditing tool. on: April 08, 2016, 11:23:37 PM
Is the API Restful?

The only APIs referred to are those of bitcoin API providers such as blockchain.info, blockr.io, insight.bitpay.com, btcd, etc.  Each API differs, but for the most part they are RESTful, yes.

Quote
What about the scalability?

The bitprices CLI utility is a single threaded, single process program written in PHP.  It queries API providers for transaction history and queries bitcoinaverage.com for BTC price history.

Transaction history is normally queried once per input address.  ( though the internal interfaces support multiple addresses if the provider API does ).  The fastest and most scaleable way to run it is to query a local instance of btcd, which has been optimized for this use case in the latest release and supports filtering returned transaction inputs/outputs by the input address.   Even still, for addresses with thousands of transactions the queries can take some time.

The bitcoinaverage data is cached on disk after the first request each day, so is quite fast.

Quote
The command line interface could be used with default C++'s compiler?

I'm not sure what you mean.   The bitprices CLI is written in PHP and can be executed from any shell environment with a recent version of PHP installed.   See the included README.

Quote
I'm looking for an alternative to Toshi Fork ,having the unrelated inputs.outputs filtered is my first priority.

Then you will probably want to take a close look at btcd.  Specifically the searchrawtransactions API.  I submitted a patch that includes a new parameter filteraddrs which is a list of addresses.  Any inputs or outputs unrelated to those addresses will be filtered out.   The patch was included in btcd v0.12.0-beta.   Depending on your needs, it might help you.

Quote
Good project there man!

thx!
153  Bitcoin / Project Development / Re: [ANN] bitprices : a price history reporting and auditing tool. on: April 08, 2016, 08:53:33 PM
New Release.

https://github.com/dan-da/bitprices/releases/tag/bitprices-v1.0.7

Minor bugfix release.

Changes:
539ef2b bump version to bitprices-v1.0.7
5d12f7e fix label of fiatinnow and fiatoutnow columns
154  Bitcoin / Project Development / Re: hd-wallet-addrs: a new tool for HD Wallet address discovery. Please test! on: April 08, 2016, 08:45:04 PM
I just made a minor release to the CLI tool and also the web tool.

Web Changes:

Added an option "Generate Only" to generate a fixed (user-defined) number of addresses without checking if each is used or not.  This speeds up processing and is useful for pre-generating addresses and other use cases.

CLI Changes:

This version adds support for blockr.io as a backend API provider and updates documentation.

https://github.com/dan-da/hd-wallet-addrs/releases/tag/hd-wallet-addrs-v0.1.3

64c2549 bump version to hd-wallet-addrs-v0.1.3
7f22536 Add legacy Copay gap limit warning
7e35d87 update README with blockr.io info
3eec473 add a blockr test case
6c8e2e9 added support for blockr.io API
d43d7b8 document --api=roundrobin feature
141c8fc update README with latest usage
155  Economy / Economics / Re: deflation can cause economic problems on: April 08, 2016, 08:21:03 PM
OP, check your premise.
156  Bitcoin / Bitcoin Discussion / Re: Bitcoin is dead again. This time for sure. on: April 08, 2016, 08:19:00 PM
consider this:

If bitcoin were easy to change at the consensus level, why would you trust in it?
157  Economy / Web Wallets / Re: How to get ExtPubKey from CoPay wallet? on: April 08, 2016, 07:11:49 PM
Go into your wallet settings, Advanced, Wallet Information. Find the section Extended Public Keys.

There are actually multiple xPubKey if you are using anything except a 1 of 1 wallet.

If you are using an M of N wallet with more than one xPubKey and you or your counterparty need to generate addresses in advance, you may find this tool helpful:

https://mybitprices.info/hd-wallet-addrs.html


Quote
Can it be derived from an address itself?

no.

158  Bitcoin / Bitcoin Discussion / Re: [Poll] How do you back-up you private key or secret seed? on: April 08, 2016, 07:01:12 PM
i keep mine on a usb thumb drive in a vault, my coins are safe for ever

until the thumb drive stops working.   

paper is proven to last centuries, properly stored.

usb drives, not so much.

even better than paper would be engraving/etching on a metal that doesn't rust such as aluminum.  Should survive a fire.  they sell aluminum or copper tags for this purpose that can be engraved with a regular ball point pen.  on amazon.
159  Bitcoin / Bitcoin Discussion / Re: What do you think is killing Bitcoin, if anything is? on: April 04, 2016, 03:38:35 PM
nothing is.  thread fail.
160  Bitcoin / Bitcoin Discussion / Re: Clearing the FUD around segwit on: April 02, 2016, 08:20:03 PM
nice writeup.   minor nits:

Quote
Segwit was in fact originally planned as a hard fork, but the developers realized that it could be done as a soft fork and doing so would be safer than a soft fork.

Quote
Segwit is a cludgy hacked together and unready software

Better: Segwit is kludgy hacked together software that is not ready.

Pages: « 1 2 3 4 5 6 7 [8] 9 10 11 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!