Bitcoin Forum
May 24, 2024, 03:47:11 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 [25] 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 »
481  Bitcoin / Bitcoin Discussion / Re: Offline Paper Wallet Creator - Raspberry Pi? on: May 12, 2013, 11:54:46 AM
Great. Hope you bring it to the conference next week. Cheesy
482  Bitcoin / Bitcoin Discussion / Re: Offline Paper Wallet Creator - Raspberry Pi? on: May 12, 2013, 10:13:13 AM
And another:

Standalone Bitcoin Offline Wallet Printer Demo
 - http://www.youtube.com/watch?v=noW77GqmNBQ
I would buy one if it could print more than one copy of the same key and if the print/paper quality would allow it to last for years.
483  Economy / Service Announcements / Re: [ANN] BitcoinSpinner on: May 08, 2013, 06:36:04 AM
Still not having luck. It seems to start with

Quote
05-08 05:10:26.493: I/dalvikvm(1464): Failed resolving Lcom/miracleas/bitcoin_spinner/SendBitcoinsActivity; interface 119 'Lcom/bccapi/ng/async/AbstractCallbackHandler;'
05-08 05:10:26.493: W/dalvikvm(1464): Link of class 'Lcom/miracleas/bitcoin_spinner/SendBitcoinsActivity;' failed
05-08 05:10:26.493: E/dalvikvm(1464): Could not find class 'com.miracleas.bitcoin_spinner.SendBitcoinsActivity', referenced from method com.miracleas.bitcoin_spinner.Main.onCreate
05-08 05:10:26.493: W/dalvikvm(1464): VFY: unable to resolve const-class 416 (Lcom/miracleas/bitcoin_spinner/SendBitcoinsActivity;) in Lcom/miracleas/bitcoin_spinner/Main;
05-08 05:10:26.493: D/dalvikvm(1464): VFY: replacing opcode 0x1c at 0x0036
05-08 05:10:26.503: W/dalvikvm(1464): VFY: unable to resolve static field 9 (productionNetwork) in Lcom/bccapi/bitlib/model/NetworkParameters;
05-08 05:10:26.503: D/dalvikvm(1464): VFY: replacing opcode 0x62 at 0x005f
05-08 05:10:26.523: D/AndroidRuntime(1464): Shutting down VM
05-08 05:10:26.523: W/dalvikvm(1464): threadid=1: thread exiting with uncaught exception (group=0x40a71930)

Search turned up a few suggestions but none of them helped. I'm sure it's something simple though. A little help?

I use MOTODEV Studio with Android 2.1 SDK installed
I have checked out the code in .../source and have .../source/BitcoinSpinner, .../source/bccapi, .../source/bitlib

1) Create new workspace
2) File -> Import -> General -> Existing Projects into workspace -> Select root directory: .../source -> Finish (three projects selected)
3) In package explorer find: BitcoinSpinner -> src -> miracleas.bitcoin_spinner -> Main.java -> Right click -> Run As -> Android Application

You probably want to run it on a real device instead of an emulator, as it is faster and lets you use the camera for scanning barcodes.
484  Economy / Service Announcements / Re: [ANN] BitcoinSpinner on: May 07, 2013, 05:46:01 AM
Any chance of porting this over to blackberry 10? 

I don't have a blackberry and frankly don't have the time to do it. The sources are open and if you know a skilled blackberry developer up for it I'd be happy to give him my support.
485  Economy / Service Announcements / Re: [ANN] BitcoinSpinner on: May 05, 2013, 11:23:12 AM
Hi everyone,

I've just seen that on FDroid since 01.05.13 there is a new version of BitcoinSpinner 0.8.2b. At the moment I'm using 0.7.3b as this was the latest version on FDroid. FDroid tells me that version 0.8.2b is signed with another key than 0.7.3b.
Is this to be expected?

I have mot compiled or signed the FDriod distribution and cannot vouche for it. However I have been in contact with a developer at FDroid on some build related questions, and I have no reason to believe that their distribution is evil.

If the FDriod distribution is signed with a different key than their previous version you can only upgrade by uninstalling and reinstalling. Keep in mind that you MUST make a backup before uninstalling (You should always do that anyway)

The distribution found here and on the Google market place are the officially signed ones using the same key since the initial release and allow you to seamlessly upgrade. Those I can vouche for.
486  Bitcoin / Wallet software / Re: BitcoinSpinner on: May 01, 2013, 09:36:51 PM
Fee should probably be a selection based on how long it would take to get enough confirmations at that fee level with a reasonable default.

This is about the same conclusion I got to. Here are my thoughts on how that calculation could be done: https://bitcointalk.org/index.php?topic=166302.msg1734215#msg1734215
487  Bitcoin / Meetups / Re: Bitcoin Supernode Summit Finland 9.-12. May 2013 on: May 01, 2013, 08:55:11 PM
I would love to go to Finland for a Bitcoin confrrence. However:
1. I am already goin to San Jose conference this month
2. Too short notice
488  Bitcoin / Bitcoin Discussion / Re: Bitcoin snack machine (fast transaction problem) on: April 30, 2013, 11:32:13 PM
Maybe, but as far as I am aware, both the race attack and finney attack are theoretical.  Are there any examples of either being employing in the wild, that does not involve a contrived lab-like setup?  Has anyone, ever, posted on the forums with a "I've been double spended against!" with a credible story?  Online websites should only accept 6 confirms for instantly deliverable goods such as online data streaming, etc; (maybe not a movie, since a double spend simply cuts off the feed halfway through the movie) but meatspace transactions below a certain value are pretty safe.  It's technically simplier to fake a coin operated snack machine using slugs than to double-spend attack it for a bag of chips.

I would love to hear the SatoshiDice developer's take on this and pick his brain.
They (if any) have the experience in the field of accepting zero conf transactions.

How about this:
SD winners/loosers are determined by value of the TX hash and some secret (to be revealed the next day).
If I am among the first to relay a SD TX I can actually alter the TX hash without invalidating the TX (by for instance altering the DER encoding and yet not invalidate signatures) before relaying it to 1000+ nodes. This gives me a high probability of getting my altered TX into the block chain.
Which of the TX hashes should get the winnings if they are determining the outcome on zero confirmations? (No, I wouldn't gain anything from this myself other than the thrill as I wouldn't be able to change the inputs/outputs without invalidating the signatures)

A similar approach would probably confuse many services around as the two TXes would not be a double spend, but just a different variety of the same TX with a different hash.   
489  Bitcoin / Bitcoin Discussion / Re: Bitcoin snack machine (fast transaction problem) on: April 30, 2013, 10:53:45 PM
I apologize for the bump, but this has been done Cool
There's also a good (albeit too detailed for the average consumer) explanation of how it works in the video.
http://www.youtube.com/watch?v=pDOcLros-w0

How does the protection against double-spending work?

Is not needed. If it's done right, the vending machine itself doesn't run a BTC client, but receives a paid notification from the vending machine company server that runs the node and is located elsewhere, which would be a good protection against a race attack as you can't make sure miners get the double spend transaction first (the vending company node gets the double spend transaction before the "valid" one).

Therefore leafs only the Finney attack which requires a pool or very large miner to participate to even have a slight chance of success. Which is obviously to expansive to get a bag of popcorn for free.
Unfortunately there is a long distance between a "race attack" and a Finney attack.
1. Long chain of fee less unconfirmed truansactions challenged by one fat fee transaction sent directly to big miners
2. No 1 combined with a tx in midstrean with nlocktime.
3. One tx sent directly to snack server, conflicting tx sent to 1000+ nodes
The list goes on.
Protecting against zero confirmation transactions is a never ending battle, like spam mail. Attackers/defenders improve, you are never 100% certain.
490  Other / Off-topic / Re: Mr. Zhou Tong on: April 24, 2013, 04:09:53 AM
Would anyone be willing to give me the executive summary of what happened?
Great article giving a summary here: http://bitcoinmagazine.com/shop/issue02/
491  Economy / Service Announcements / Re: [ANN] BitcoinSpinner on: April 19, 2013, 06:21:29 PM
I've been using BitcoinSpinner for a while now and like it quite a bit. I think I've read through most of this thread, so I apologize if I missed the answer to this: What happens if the backend server goes away? Can I still retrieve my coins somehow?

If the answer is no, then the one feature I'd like to request is the ability to change the backend server that the app connects to (and if a special backend server is needed, can that software be open sourced?). In the event that you and/or your server go away, I would hate to loose access to whatever coins I have stored in my wallet. Would something like that even be possible?
Besides "backup wallet" option, there is the "export private key" under "advanced" settings. I have not tested the functionality myself, but if this is the actual private key, we should be able to import it into any client.
Niko is right. The ability to export your private key has been there from the first release. For one of my spending wallet I have exported the private key and imported it in a blockchain.info wallet. This way I can access the same funds from my BitcoinSpinner Android phone and blockchain.info iPhone app.
492  Bitcoin / Bitcoin Discussion / Slew of Bitcoin related spam mails on: April 18, 2013, 09:29:29 AM
I within the last 30 minutes I got four different spam mails on Bitcoin claiming to come from:
  • BitPay
  • GLBSE
  • MtGox Support Desk
  • 邱亮

Here is a sample

I guess I am not the only one.
493  Bitcoin / Wallet software / Re: BitcoinSpinner on: April 17, 2013, 04:51:28 AM
http://blockchain.info/address/13qnEgPTxJW6mm88dLpnHXZyryN5EXBciq

Any idea why only 0.01253471 BTC turned up for the 15:20:09 transaction?

Edit: Never mind, I think I see what's going on. How many confirmations does it take?

Wait, none of my mined coins appear to be turning up. What *is* going on?

My balance seems to be correct. Do generated coins just not show up in the transaction history?
BitcoinSpinner does not distinguish between coinbase transactions and 'normal' transactions. It should not count them towards your confirmed balance until after 120 blocks, but it doesn't work like this now. This is only a problem if you mine directly to a BitcoinSpinner address, but never the less something I should look into.


Are you not set up with mining? I could mine a little directly to an address if you'd like to be able to check it out.
I am not mining, so thank you for the offer to help testing this.

I had a prod around the source. I think the transaction history page is behaving properly (Though it would be better if mined coins were shown differently than transferred coins). It's either the server or the part that reads from the server and parses it out.
As far as I can see the coinbase transaction outputs are included alright, but they should only be spendable after 100 confirmations (network rule). BitcoinQT's UI only allows you to spend them after 120 confirmations. BitcoinSpinner doesn't treat them any different than normal transaction outputs, and there is the problem.
My best guess is that if you try to spend them before 100  confirmations your tx will be rejected by the network.

To fix this I'll have to extend the API and add an isCoinbase boolean to com.bccapi.bitlib.model.UnspentTransactionOutput, use this to color the transactions in the Tx History UI and not count them towards your balance until they have matured. This sounds simple enough, but will require changing the data model on the backend, a rescan of the blockchain, and an API breaking change. I'll look into it, but it won't be until after the San Jose conference.
494  Bitcoin / Wallet software / Re: BitcoinSpinner on: April 13, 2013, 01:40:23 PM
http://blockchain.info/address/13qnEgPTxJW6mm88dLpnHXZyryN5EXBciq

Any idea why only 0.01253471 BTC turned up for the 15:20:09 transaction?

Edit: Never mind, I think I see what's going on. How many confirmations does it take?

Wait, none of my mined coins appear to be turning up. What *is* going on?

My balance seems to be correct. Do generated coins just not show up in the transaction history?
BitcoinSpinner does not distinguish between coinbase transactions and 'normal' transactions. It should not count them towards your confirmed balance until after 120 blocks, but it doesn't work like this now. This is only a problem if you mine directly to a BitcoinSpinner address, but never the less something I should look into.
495  Bitcoin / Development & Technical Discussion / Re: To Fee or not to Fee on: April 12, 2013, 01:16:17 PM

X-axis denotes how many blocks it took for a given transaction to confirm from the time where it was observed (0 means next block)


If I am reading this correctly, some transactions took 7000+ blocks to confirm?!
Well, ehrm... mix of axis... Smiley  7000+ satoshis/byte in fee
496  Bitcoin / Development & Technical Discussion / Re: To Fee or not to Fee on: April 12, 2013, 12:12:16 PM
Analyze away.

I think it's easy to spot the following cut-off points in your sample dataset:
- a fee over ~5300 s/byte will guarantee inclusion in the next block
- a fee over ~3000 s/byte will guarantee inclusion in the next two blocks
- a fee over ~500 s/byte will guarantee inclusion in the next three blocks (*)
- etc.
- even txns with 0 fee are picked up in less than ~35 blocks

(*) The only exception for this a single transaction with a ~2000 s/byte fee that took about 7 blocks; I suspect it didn't have all it's inputs confirmed and that's why it's an outlier. So the  correct block delay should be computed from the moment when all inputs are confirmed.

"Guaranteed" should of course be understood "in light of historical data". You can make no guarantee that a transaction will be picked up, but absent a major shift in the behavior of miners or transaction rate, historical data is our best chance to compute a "fair" fee that won't waste money for a given confirmation speed. If the client sets a fee that is too low for current conditions, the resulting delay will signal to other clients the new market conditions and they will increase the fee accordingly. A fee that is too high can also be detected by the clients, if they target say a 90-95% inclusion at a given block instead of 100% guarantee of inclusion.



Given the full set of transactions as you have provided us, the algorithm to compute the correct fee seems a simple binary search :
   start with a guesstimate fee F = maxfee/2
   set search step S = F
   set delay target T (ex. 3 blocks)
   set inclusion confidence L (ex. 90%)
   set precision of fee determination epsilon (ex. 1%)
   loop
      n = count(transactions with fee <= F AND confirmation delay <= T)
      N = count (transactions with fee > F AND confirmation delay > T)
      compare n/(n+N) with L
      F=F+/-S (sign depending on the compare)
      S=S/2
      break if S < epsilon*F
   continue loop
   return F

So I basically split the data into four quadrants depending on fee and delay, as compared to our delay target and current fee. Since they bring us no information, I discard transaction with low fee and high delay, as well as those with high fee and low delay. Then compare the data in the remaining quadrants with our target and continue to search for the optimal fee for achieving our goal. I don't have any functional code but this should work. At least that's how the theory goes Smiley

The trouble with this algorithm is that it doesn't scale too well because it needs to walk all transactions multiple times. At high rates it could be a killer. So instead of walking actual transactions, you could sample them in discrete bins just once, then run the algorithm on the bins. The bins would form a 2D table, and each bin will consist of a single integer that records how many transactions match the given fee interval and delay. For the fee axis I would go with an exponential pace, for example each bin represents a 10% increase in fee. Of course the precision of fee determinations drops but you only need to build the table once and after that it's just a few kB to download from a central location for example.

An even better algorithm could take into consideration current unconfirmed transaction rate and adjust the fee (linearly ? needs experimentation); this is especially important when the block limit is reached and fee ceilings transition from a fixed ceiling set by the miner ("don't include transactions with less than x BTC fee") to a dynamic rate set by the market ("include the transactions with the largest fees possible in a given block size").

Interesting. I'll give it a spin and see how it works out.
497  Bitcoin / Development & Technical Discussion / Re: To Fee or not to Fee on: April 12, 2013, 12:10:05 PM
Would you mind plotting the data on a log/log chart? Cheers.

same data with log/log:
cat raw_tx_data.csv | cut -d ',' -f 2,3 | sed -e 's/,/ /g' | gnuplot -p -e "set yrange [1:60]; set logscale; set terminal png size 1500,1000; set output 'fig.png'; set xrange[1:8000] ;plot '-'"

Note that blockcount=0 omitted (gnuplot does not like log(0))

498  Bitcoin / Bitcoin Discussion / Re: 10 Commandments of BitCoin on: April 11, 2013, 10:08:44 PM
Lol
499  Bitcoin / Bitcoin Discussion / Re: Oanda will take out MtGox, Mt Gox should look at how they run on: April 11, 2013, 05:32:14 PM
link?
500  Bitcoin / Bitcoin Discussion / Re: The Key Ring on: April 11, 2013, 05:19:56 PM
Which reminded me of this from back in 1998: http://www.nngroup.com/articles/javaring-wearable-computer/
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 [25] 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!