Bitcoin Forum
May 05, 2024, 09:13:13 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 3 4 5 6 7 »
1  Economy / Service Announcements / Re: BTC buy&sell - best rates from HiRiBi.com on: February 03, 2017, 05:13:54 PM
Perfect deal. Exchanged successfully, thanks.
2  Bitcoin / Bitcoin Technical Support / Re: Disc usage on: February 22, 2013, 09:22:02 AM
turned out the largest disc usage was from database logs  Roll Eyes
They are no more, and client seems to be ok with their passing  Smiley

Quote
bitcoin@BPN:~/.bitcoin$ du -csh *
12K   __db.001
1.4M   __db.002
268K   __db.003
48K   __db.004
4.7M   __db.005
12K   __db.006
154M   addr.dat
4.0K   bitcoin.conf
4.0K   bitcoind.pid
1.5G   bk
2.0G   blk0001.dat
2.0G   blk0002.dat
1.7G   blk0003.dat
1.8G   blkindex.dat
11G   database
0   db.log
254M   debug.log
76K   wallet.dat
20G   total
3  Bitcoin / Bitcoin Technical Support / Disc usage on: February 18, 2013, 10:22:51 AM
Over the last 2 years, I have been running a bitcoin service.
Now the disc usage is getting out of hand, and I am wondering if there is any improvements in that in newer versions?

The one I am running is quite old (it does not have access to any bitcoins), and since I am using a custom patch, it may not be so simple to upgrade.

Also what amount of disc usage is acceptable atm ?

Currently I have 20GB used just by .bitcoin Sad
4  Bitcoin / Project Development / Re: [ANNOUNCE] BitPing.Net - A bitcoin notify service on: January 09, 2013, 04:09:32 PM
Just trying to get this code working - can someone help me get zero-confirmations notifications working? I'm not sure if I'm missing something obvious or if the instructions / code are missing from Github.

I'm seeing a monitor script, "bpn/monitor/unconfirmed-monitor.php", looking at a table called active_uncomfirmed_monitors. This seems to get populated by a script called "bpn/www/tx.php", which expects a load of json_encoded Bitcoin transactions, presumably unconfirmed ones.

But what's supposed to be hitting tx.php, and where's it getting its transaction information from?


Hi,

You need to run a modified bitcoin client that does the calling of tx.php.
The patch is linked from the bitping page, but im afraid its quite a few versions back from the main bitcoin tree, so it may not cleanly patch up against the newest version.

https://github.com/MORA99/bitcoin (Patch by stucpp)
5  Bitcoin / Project Development / Re: [ANNOUNCE] BitPing.Net - A bitcoin notify service on: March 20, 2012, 06:42:29 PM
Hmm, found a bug in the monitor code, that caused some addresses to not be detected  Cry
It should be fixed now, will test again.
6  Bitcoin / Project Development / Re: [ANNOUNCE] BitPing.Net - A bitcoin notify service on: March 20, 2012, 06:10:31 PM
I am monitoring this address: http://blockexplorer.com/address/1J9fuhVWEBT1ZuRRk66eFo6s9pc4wJ4ozg

But I have not received notification.
Also there is no notification in history...
Did you create the order after the payment was sent (but before it reached 4 confirmations) ?

I am currently running a test to check if theres anything wrong with the system.
Which informations are you looking for in history ?
7  Economy / Goods / Re: [WTS] Steam Games for Bitcoins! (www.steamcoin.net) [NOW WITH SSL!!!] on: March 19, 2012, 05:58:18 PM
Mine worked today also, got the game in less than 30minutes Smiley
8  Economy / Goods / Re: [WTS] Steam Games for Bitcoins! (www.steamcoin.net) [NOW WITH SSL!!!] on: March 18, 2012, 03:30:57 PM
Tried to use it from both FF and chrome today, both got stuck at "checking information" after entering game url, email, btc address and accepting price...

bummer
9  Bitcoin / Project Development / Re: Standard HTTP Post scheme for bitcoin payment notifications on: March 13, 2012, 07:14:18 PM
Well the "secret" vs non secret is really just symmetric or asymmetric encryption.
In symmetric the same key is used to encrypt and decrypt, in asymmetric a public key is used to decrypt data signed by a private key.

We can make asymmetric without having to go the PGP route, but I am not sure if its really needed, the users still need to protect them selves against a server compromise, by using more than 1 service, or looking up the data on a blockexplorer(of cause not everyone will actually do that).
10  Bitcoin / Project Development / Re: Standard HTTP Post scheme for bitcoin payment notifications on: March 12, 2012, 07:12:19 AM
Hmm. I was thinking today if the whole thing of signing string with user-specific secret is the right thing?

What we want to achieve:
Give the user possibility to verify the provided data is authentic.

What we actually do:
Give the user possibility to verify the provided data is authentic and signed with users secret.

I think the latter part is not necessary - as long as user can make sure the data is authentic everything is fine. So probably we can simplify the setup by not needing user-specific secrets...
How do you propose to validate the content without a secret ?
-Not only the sender, but also that the contents have not been tampered with.

If the server is compromised, all bets are off, but the user secret means you need to know url, address and secret to fake a call.
If that secret is a user "defined" one, or a ssl key or something else, is maybe the same.
11  Bitcoin / Project Development / Re: How to build a physical safe that you can open with bitcoin on: March 02, 2012, 11:28:24 AM
The raspberry is powerful enough to handle the bitcoin verification itself, however may lack network connectivity.

The triggering of a output based on a bitcoin payment is easy enough, use any of the notify services to call your url and verify the data.
Can be made to not require a incoming connection if its behind a firewall etc.

But ofcause that requires the monitor service to be running, and then you might as well do it without the bitcoin part.
Not sure if any of the light systems are opensource and used widely enough to be an option ? (closed source propriety servers are not)
12  Bitcoin / Project Development / Re: New Project Idea. Yours to implement and win. on: March 02, 2012, 11:21:29 AM
isnt escow normally used when exchanging btc for something else ?
So while you can verify that a BTC payment was made, you cant verify ie. if the parcel was shipped.
13  Bitcoin / Project Development / Re: If I wanted to start a Bitcoin casino... [will pay for help] on: March 02, 2012, 11:16:43 AM
The conclusion is that players using Martingale strategy pose no threat to a casino. The odds are high that the player will go bust before he is able even to double his money.
Well that depends on minimum bet, maximum bet and wallet size Smiley

Say minimum 0.01BTC max 1000BTC wallet ~1300BTC

0.01
0.02
0.04
0.08
0.16
0.32
0.64
1.28
2.56
5.12
10.24
20.48
40.96
81.92
163.84
327.68
655.36
BUST

Thats 17misses in a row, absolutely possible, however fairly unlikely.
The casino can limit the betting range, but the bot could just jump tables.
And since its a bot, even 0.01BTC per win will be fine, if it can just do 1 win per 5minutes thats 2.88BTC per day per bot/played table, they can even share money pool if the deposit system accepts a low amount of verifications, or you could have bots continuously sitting at different tables, so when the 0.01bot looses a 0.64bet, the next bot takes over at a higher stake table and the first bot starts over on a new round, that way you dont need to move the big cash around.

Ofcause this is not practical, since the risk is alot higher than the gain, a 1000BTC risk for maybe 10BTC/day, you might as well play it all on red and wall away Smiley
14  Bitcoin / Project Development / Re: If I wanted to start a Bitcoin casino... [will pay for help] on: February 28, 2012, 11:31:16 AM
ie. its pretty easy to detect a user using double bet attack, and let them succeed a few times, before locking them in for a 50x lost bet.
Don't even need to try, https://en.wikipedia.org/wiki/Martingale_%28betting_system%29
Yes that system was what I meant, what do you mean with "dont even need to try" ?

The published hash idea is pretty neat, would work well for most games, as long as the hash is complex enough.
(0xAA 0xAA 0xAA) would be pretty obvious for a 3 wheel spin thing.
15  Bitcoin / Project Development / Re: Standard HTTP Post scheme for bitcoin payment notifications on: February 27, 2012, 01:01:18 PM
Perhaps a (signed) version field would be useful, to allow for future breaking changes.

Not sure how it could be made so a gradual changeover would be possible, a version field would only allow gradual upgrade of clients, once a server is upgraded, everyone gets v2 messenges...

Also do you have an idea about how it should be implemented in existing systems, where users are already using the old system ?
16  Bitcoin / Project Development / Re: Standard HTTP Post scheme for bitcoin payment notifications on: February 25, 2012, 04:55:32 PM
It has the advantage of allowing nested data structures. So like in my example we can nicely model an array of signed_data and it would be quite obvious which parameters to include for signature checking for everyone.
With a flat key=>value structure it's not so obvious anymore and might lead to errors.
Also json knows basic datatypes (strings, numbers, ...) so there is less risk of misinterpretation/wrong conversion.

A json-parser is available in any language you can think of (see http://json.org/), and some/many popular languages have it already built-in.

Well, while there is a C parser avaliable, most seem aimed at full blown systems, a sensor platform may have as little as 8MHz, 16KByte flash space and 2KByte ram.

However even those devices can cope with simple json, so its not a "must not have" Smiley
17  Bitcoin / Project Development / Re: Standard HTTP Post scheme for bitcoin payment notifications on: February 24, 2012, 02:30:44 PM
Quote
I propose an additional fied:
"timestamp" which should be the date/time this transaction was observed by the monitoring system.
Good idea, then the receiver can also detect delayed notifications, due to outage of sender/receiver.
I suggest using a a standard timezone so we dont have to include timezone (zulu?)

Quote
I am currently working on extending notification possibilites of bitcoinmonitor.net to support outgoing payments. To support this also for http callback we should keep the wording neutral, so "to_address" would become "address" and "amount" can be positive for incoming and negative for outgoing payments.
Agreed, maybe a type field, to designate if the address is sender or receiver ?

Quote
About the block number - Is this really necessary? I am not sure if it adds significant information. If not, i would omit it just to keep the list of parameters as short as possible.
I think some gambling sites would like it, to save an extra lookup to find the information, ie. the lotterly ended at block 27 which was the first block in Januar 1970.

Quote
While this is a very flexible approach it might make adoption of the system a bit more complicated. I think we should be able to agree on one algorithm. TBH I am lacking background knowledge to make an educated decision - basically I don't care which one to use.
There still would be the option to put the algorithm specifier outside the common signed_data part, so special solutions would still be possible.
As far as I know, it is a bit easyier to find a hash collision with MD5 than sha1, and bitcoin uses some form of sha.
But as a signature, I dont think the difference is all that big, I use sha1 today, but can switch to md5 if someone that knows the systems better, agrees that there is no security problem in it.

Quote
Quote
I hope we can agree on a sequence, so that the system does not need to load a list of fields to calculate the signature.
Very simple proposal which i chose also for bitcoinmonitor.net: Alphabetical ordering ;-)
Good idea, Agreed.

Quote
Proposal how to store the data in the POST body:
Use a json string e.g.
Code:
{
    "signed_data": {
        "address": "12r9JzPNnyWs2j1s9KLW5keqBr4kbJjxz6",
        "amount": 122678000,
        "confirmations": 2,
        "timestamp": "2012-02-19 10:37:20.203541",
        "txhash": "e0c84120068bfefddab051e751f3df963c4ed29e7b13eadac026e6f17f55fb06",
        "ip": "127.0.0.1"
    },
    "signature": "38a25ec14b9ffcfe98938f3e35ac9cf41de2a971",
    "service": "<service name here>"
    <any additional information specific to service>
}
Is there any specific reason you would rather post a json body than use the key=>value system ?
Using key=>value allows PHP scripts to access the data as $_POST['key'], instead of having to go with a json parser, and "internet of things" will have a hard time parseing json.
18  Economy / Services / Re: Would anyone be interested in bitcoin webhosting? on: February 24, 2012, 10:52:49 AM
And how do you plan to handle abuse ?
For 10$ you cant answer too many abuse reports per customer, well hardly 1.
And then there's the ones from your ISP/DC that you have to answer to keep your connection/server.

Not shooting it down, a basic web hosting service with BTC processing would be most welcome, but its not complex enough, so any reasonably competent sysadmin can copy the concept and maybe even at lower prices (After all a standard server in germany comes with 3TB of space and 16GB ram with almost unlimted bw for 100$/month)
19  Bitcoin / Project Development / Standard HTTP Post scheme for bitcoin payment notifications on: February 24, 2012, 10:42:19 AM
As discussed briefly in another bitcoinmonitor thread, some form of standard for HTTP Post notifications would be beneficial for all.

The goal with this thread, is to agree on a minimum subset of variables, and signature generation, that all services will implement, so that no matter which service you use, the basic function is the same.
This would allow shops to pick a payment module, and payment notification service(s) independently.

The standard will need to define which fields are mandatory, and which fields are used in the calculation of signature, in which sequence and how the signature is calculated.

To start off, heres my bid for mandatory fields
The names are only suggestions.
  • to_address
  • amount (in satoshi to avoid any radix point confusion)
  • confirmations (Number of confirmations at the time of the notification, not necessary the requested amount)
  • txhash (the hash of the transaction that contains the payment)
  • block (height of the block that contained the tx, -1 if unconfirmed)
  • signature (see below)
  • service (name of the service, could be used in shops where 2 of 3 notifications are needed, before its accepted)
  • IP (public ip of the service, since this is included in the signature, a replay attack has to be done from the same IP (yes it can be spoofed))

If we can agree on a hashing algorithm, thats cool.
But since we may not, and any algorithm in time could become obsolete, I think a field to specify the used algorithm is useful, also this could allow services to make a easier CRC, for the "internet of things", like xor/crc8.

  • algorithm (sha1, md5, crc32, etc.)

To keep it simple to implement, we should only list the ones that are likely to be used, since any payment system will need to implement all, so if possible, we should keep to the most standard ones, that are likely to be available.
I would suggest using PHP as the reference, since its pretty popular, and contains quite a few hashing systems.

I hope we can agree on a sequence, so that the system does not need to load a list of fields to calculate the signature.

After security checks, a signature validation could be performed in PHP
Code:
if ($_SERVER['REMOTE_ADDR'] == $ip &&
$$algorithm($to_address.$amount.$confirmations.$txhash.$block.$ip.$secret) == $signature)
The service name does not need to be included in the calculation, since it would be used to lookup the secret value, so if its changed the validation will fail.

Any service can add extra fields, like btc_amount, from_addresses, datetime, etc.
Since the signature does not include those fields, the same code can still be used.
If those fields contain data, a middle-man would have interest in modifying, a second signature could be added.


This is only my suggestion, please feel free to comment and explain your view on how it can/should be done.
20  Bitcoin / Project Development / Re: [Announce] bitcoinmonitor.net - professional notification service (Free!) on: February 22, 2012, 08:10:01 PM
Like that idea! Maybe we can start a page on the bitcoin wiki to discuss/define the format?
Sure, or another thread for the discussion part.

For the rough part we seem to be using the same idea, some values concatted together with a secret value and hashed, the values and hash algorithm is different, but...
Pages: [1] 2 3 4 5 6 7 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!