Bitcoin Forum
June 15, 2024, 11:13:37 AM *
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 12 13 14 15 16 17 »
161  Bitcoin / Bitcoin Technical Support / Re: howto nlocktime on: November 01, 2013, 11:18:59 AM
hm. is there at least a tool to convert a raw transaction to a readable form _and back_?

https://blockchain.info/decode-tx
then
https://blockchain.info/pushtx

The OP is specifically interested in encoding transactions, and those (otherwise useful) pages can't do that. 'createrawtransaction' does but it doesn't accept setting the nlocktime.

@OP: anyway, according to the wiki nlocktime is always the last item in the transaction, ie the last four bytes. You'll see that your raw transaction ends with 4 zero bytes. Play with them until you achieve your desired nlocktime. Beware, it's a little endian integer:

Code:
01000000 =>          1: block 1
0a000000 =>         10: block 10
ff000000 =>        255: block 255
00010000 =>        256: block 256
00020000 =>        512: block 512
00100000 =>       4096: block 4096
00000001 =>   16777216: block 16777216
ff64cd1d =>  499999999: block 499999999
0065cd1d =>  500000000: Nov 5 1985 00:53:20 UTC, note it isn't a block number anymore!
805ac352 => 1388534400: Jan 1 2014 00:00:00 UTC

So if you have this transaction:

Code:
01000000010fff030dfce93c3e4457af8ad0cd47c184a9671db28cb3cb1188b4366ce5906800000000473045022100a4b143ff81dd6ab899aef5234a02054354de8a309eff811d654cd21d6e0b536102207100585568dafba3663720a710aa0cafed27e2379292c246cf0b3cb5b21b3579ffffffff01905f0100000000001976a91428d4cb88f005376046ab1fca64ae9c8a4bcfc73a88ac00000000

which decodes to:

Code:
{
   "lock_time":0,
   "inputs":[ blah blah ],
   "vout_sz":1,
   "hash":"72d9c8951e543ce7a370aec3c3007e8f4e6e3d244a770631ae55a23b00457be4",
   "vin_sz":1,
   "out":[ blah blah ],
   "size":156,
   "version":1
}

and change the last 4 bytes:

Code:
01000000010fff030dfce93c3e4457af8ad0cd47c184a9671db28cb3cb1188b4366ce5906800000000473045022100a4b143ff81dd6ab899aef5234a02054354de8a309eff811d654cd21d6e0b536102207100585568dafba3663720a710aa0cafed27e2379292c246cf0b3cb5b21b3579ffffffff01905f0100000000001976a91428d4cb88f005376046ab1fca64ae9c8a4bcfc73a88ac1b787352

you obtain an identical transaction except for the nlocktime (and the hash of course)

Code:
{
   "lock_time":1383299099,
   "inputs":[ blah blah ],
   "vout_sz":1,
   "hash":"ace99d8d6301982e7978997a7c47f8807314eaaca5c3f7b03576b2d036faed2c",
   "vin_sz":1,
   "out":[ blah blah ],
   "size":156,
   "version":1
}

That value corresponds to Nov 1 2013 09:44:59 UTC (ie right now).

great, thanks for the detailed answer! I think should be able to do this now.

162  Economy / Gambling / Re: LuckyBit - putting suspense back into gambling on: November 01, 2013, 11:14:18 AM
re offchain/onchain:

an advantage of onchain games (not mentioned in the OP) is that they are "more provably fair."
An offchain site could just change your balance to any amount. Then you could go
complain on the forums, but it'd be your reputation against theirs. Can't do it with onchain.

but on the otherhand after gambling onchain anyone whom you send your coins
will see that you are a gambler. Unless you launder your coins of course.
163  Bitcoin / Bitcoin Technical Support / Re: howto nlocktime on: November 01, 2013, 12:08:08 AM
alright, how do I find nlocktime in the hex?
164  Economy / Gambling / Re: LuckyBit - putting suspense back into gambling on: October 31, 2013, 11:24:24 PM
are you guys always putting 0.0001 transaction fee, irrespective of the size?
It makes some transactions low-priority, they may take a long time to confirm (if ever), like this one here:
https://blockchain.info/tx/fd45028306d6e61664f28dbe8ecf995473a71218c7497c5c4d8200c949ee6b9f

No, we are scaling the transaction fee depending on the size. The default fee of 0.0001 is paid by the user, everything above that (due to size) is covered by us.

Looking at the transaction that you've posted it seems that there is a problem somewhere. This transaction should have at a size of 4kB a fee of 0.0004. (We're complying with 0.8.2 rules). Thanks for spotting this, we'll try to fix it ASAP.

There are  two more transactions like this to the same address (mine actually). There are probably others. May be you should re-send  (double-spend) them with a higher fee. Here are the two
https://blockchain.info/tx/483763227f1baebf4c7465882e163fb2843fdd1ec8487f13289873cbafc4c456
https://blockchain.info/tx/dc1e860bf8276e6e45474a49b8f9d17dc617c5ac43d72933f4c5923f4107bbf7

Edit: these two are now included in a block. Only the first one still remains unconfirmed
165  Economy / Gambling / Re: LuckyBit - putting suspense back into gambling on: October 31, 2013, 10:57:32 PM
are you guys always putting 0.0001 transaction fee, irrespective of the size?
It makes some transactions low-priority, they may take a long time to confirm (if ever), like this one here:
https://blockchain.info/tx/fd45028306d6e61664f28dbe8ecf995473a71218c7497c5c4d8200c949ee6b9f
166  Bitcoin / Bitcoin Technical Support / Re: Creating transactions manually? on: October 31, 2013, 10:18:54 AM
you can use bitcoin-qt without the blockchain (just with the wallet.da) to create transactions.
Use createrawtransaction for this.
Then you can broadcast the transaction using for example http://blockchain.info/pushtx
167  Bitcoin / Bitcoin Technical Support / Re: howto nlocktime on: October 30, 2013, 08:31:38 PM
can anyone explain me how to make an Nlocktime transaction?

As far as I know you have to createrawtransaction, then edit the raw hexadecimal by hand Smiley. When edited, issue a decoderawtransaction to check that everything's ok, then finally sendrawtransaction.
hm. is there at least a tool to convert a raw transaction to a readable form _and back_?
168  Bitcoin / Bitcoin Technical Support / howto nlocktime on: October 30, 2013, 07:02:32 PM
hi,

can anyone explain me how to make an Nlocktime transaction?

I just want to send all my funds to myself to be spendable in a year or so.
Since it's "all my funds" I want to make sure it's safe.

also, will the current version of multibit and bitcoin-qt handle correclty a
already spendable transacion which had an non-0 nlocktime?

thanks


PS Why do I want to do this - to block myself from gambling
169  Economy / Service Discussion / Re: Problems with bitcoin-24.com WARNING! UPDATE! on: October 29, 2013, 02:35:22 PM
hi all

do you know of any way to reach the btc24 guys?

I want them just to update my account balance
so once (or if) they do get the money they  can send me the right amount.
(It incorrectly shows as processed  a wire that never came through)
Using the "contact" form and emailing gives no response



170  Economy / Gambling / Re: ♠ FREE 0.02BTC ♠ Bit777.com ♠ 50% DEPOSIT BONUS UP TO 5BTC TILL 10/14!!! on: October 26, 2013, 03:35:46 PM
I really don't understand how this "5x rollover" works.
I won more than 10 on 2 promo and some deposit, still can't withdraw.
can you check my account and say what's wrong with it? account name tun

Hi,

You played a lot of No Zero. No Zero doesn't count since it has no house edge. You will need to play some other games in order to clear the requirement.

I see, thanks. Now the withdrawl is actually processed and shows as "completed" but there's no transaction on the network. I suppose I just have to wait, right?
171  Economy / Gambling / Re: ♠ FREE 0.02BTC ♠ Bit777.com ♠ 50% DEPOSIT BONUS UP TO 5BTC TILL 10/14!!! on: October 26, 2013, 02:25:48 PM
I really don't understand how this "5x rollover" works.
I won more than 10 on 2 promo and some deposit, still can't withdraw.
can you check my account and say what's wrong with it? account name
172  Economy / Gambling / Re: Announcing new Dice Game: Lucky 7’s Dice! 0.5% edge – Free BTC for feedback on: October 26, 2013, 06:54:21 AM
Attention Posters: I only have a few more credits to give out to players, so make the feedback good! I'll be back in about 8 hours to credit the remaining accounts.

Nice games. I like the "expected return" tab, makes it look fair and transparent,
but I'd like more explanation of what goes on with jack pot.
ALso, I'd recommend getting rid of the referral program: I think I'm not
the only one who detests these.

I kinda like the design but it has some definite 90's flavour to it, which
may not be to everyone's liking.


1PLkKs9XDpvHAMKYH1M5tG4nbH2YfG5psU

Credited. Good eye, we definitely are going after the 80's and 90's vibe of classic machines. We have a soft spot in our heart for dive bar gambling.


oops. I think I lost my "account." I thought the browser would remember me through a coockie,
and didn't do anything to check it actually did.
Oh well. Nevermind,  I guess there's nothing that can be done about it.

This happens sometimes with new players because our account system can be confusing. I'll use your deposit address to find your account and PM you the address.


oh I see. I guess that can work. Thanks
173  Economy / Gambling / Re: Announcing new Dice Game: Lucky 7’s Dice! 0.5% edge – Free BTC for feedback on: October 25, 2013, 05:24:56 PM
Attention Posters: I only have a few more credits to give out to players, so make the feedback good! I'll be back in about 8 hours to credit the remaining accounts.

Nice games. I like the "expected return" tab, makes it look fair and transparent,
but I'd like more explanation of what goes on with jack pot.
ALso, I'd recommend getting rid of the referral program: I think I'm not
the only one who detests these.

I kinda like the design but it has some definite 90's flavour to it, which
may not be to everyone's liking.


1PLkKs9XDpvHAMKYH1M5tG4nbH2YfG5psU

Credited. Good eye, we definitely are going after the 80's and 90's vibe of classic machines. We have a soft spot in our heart for dive bar gambling.


oops. I think I lost my "account." I thought the browser would remember me through a coockie,
and didn't do anything to check it actually did.
Oh well. Nevermind,  I guess there's nothing that can be done about it.
174  Economy / Gambling / Re: Announcing new Dice Game: Lucky 7’s Dice! 0.5% edge – Free BTC for feedback on: October 25, 2013, 04:42:05 PM
Nice games. I like the "expected return" tab, makes it look fair and transparent,
but I'd like more explanation of what goes on with jack pot.
ALso, I'd recommend getting rid of the referral program: I think I'm not
the only one who detests these.

I kinda like the design but it has some definite 90's flavour to it, which
may not be to everyone's liking.


1PLkKs9XDpvHAMKYH1M5tG4nbH2YfG5psU
175  Bitcoin / Development & Technical Discussion / m of n collective wallets and services on: October 24, 2013, 06:54:51 PM
here's a suggestion of how to drastically remove the need of  trust for online (collective) wallets.

Why:

Online collective wallets have the following advantages:
- mixing of users' coins
- free or cheap transactions between users, including
- microtransactions,
- off-chain (i.e., not polluting the bitcoin blockchain)
- ease of use
But they have the following big problem:
 * You need to trust the operator not to run away with your coins or to get hacked.

The following simple idea can remedy the latter drawback:

Instead of one server handling the user coins, several (say, n) online wallets pool together,
and every withdrawal has to be approved by m out of n of them.

In a bit more detail:
each user is identified by a public key, to which the private key is kept only in his
browser.  The public key is sent to n servers.
Every server keeps the ledger of all transactions of each user.
The user may chose one of the online wallets as his primary wallet; this wallet
will provide all the user interface to him, and will take any charges  that are applicable.
Any operation  the user wants to make is signed with his private key.
The signed request is sent to all the participating servers.
Deposit address for each user are "m of n" addresses.
So each withdrawal has to be signed by m of n servers.
The charges a users' primary server wants to apply follow the same process:
if they are internal, all servers put it in their books. If they are external (withdrawals)
m of n servers must sign the transaction. If the rules for the charges are agreed upon
in advance, keeping the books is straightforward.

Shall the user's primary server go offline/get hacked etc., he can still request
to withdraw his funds from the remaining servers, and they can process it (as long
as the number of online/not compromised servers is <= m)


From simple online wallets/mixers this can be potentially extended
to more advanced services such as banks, casinos, etc. with the same idea:
all participating servers keep the book for all users; withdrawals are m of n.


176  Economy / Gambling / Re: probably audited gambling (provably fair for investors) on: October 22, 2013, 08:15:02 AM
I will do it only if someone is actually interested in implementing it.

That's not how it works, usually. You implement and if people find it interesting, they might use it.

that's just one way of making things work.
177  Economy / Gambling / probably audited gambling (provably fair for investors) on: October 20, 2013, 03:24:50 AM
hi all,

I think I have a solution to the following two problems with current provably fair gambling sites:

1) in off-chain sites, the site can cheat the user trivially in such a way that the user will know
immediately he'd been cheated, but will not be able to prove it to third parties.
(e.g., the site can just update the balance arbitrarily or pretend the user had bet on a different outcome)
(see this thread, full of flame and troll)

2) For those sites that attract investors  for a share of profit/loss (such as just-dice), there is currently no
way to prove to the investors that the site is fair; for example, the site owner could
play anonimously and win arbitrary large amounts (damaging investors).

The solution would require third parties to run an auditing service online. Of course
they will not be able to manipulate the game, only to verify fairness. I imagine
different gambling sites running an auditing service for each other, or large
investors running  such a  service themselves.

The cryptography of the proposed solution is quite different from what is currently
used; instead of hashing it would be based on signatures.

Since writing up the complete proposal takes considerable time, I will do it only if someone is actually interested in implementing it.
COding this will require substantially more work than for any of the current solutions;
in particular, user-side JS cryptographic signatures (kind of like on blockchain.info) will have
to be implemented.

Please let me know here or by PM if you are interested.

178  Economy / Gambling / Re: problem with off-chain "provably fair" games on: October 19, 2013, 11:46:36 AM
huge flame, but the simple observation I made is largerly missed.

There's a difference between "you know when you've been cheated" and
"when you'be been cheated, you can prove it."

Unfortunately, the off-chain "provably fair" casions provide only the first
type of guarantee, whereas the on-chain ones provide the second type.

I don't think one needs the bitcoin blockchain to solve the problem, but
the current algorithms in off-chain casions do not provide a solution.

There's no need to complicate the situation. Whenever you make a deposit at any place (this goes way beyond off the chain games), that place is able to do anything with that. The only reason such thing does not happen is because there is no interest in doing so. You can sign messages, broadcasts them, and so on, but since you made a deposit then it's just a matter of trusting the place.

it doesn't *have* to be this way.
for example, in satoshi dice and the rest of them on-chain gambling places, there's no need for trust

You must be missing something then. Consider an on the chain game X, and make a deposit to place a bet. If the bet amount is above Y, then you never hear about X again. How can that not require trust ? The transaction is recorded in the blockchain, but that doesn't mean you can't be scammed.

yes, you can be scammed on-chain but everybody will know about it, not just you.
Everybody will see that there's no return transaction, so you can prove you've been cheated.
That's the main difference.
179  Economy / Gambling / Re: problem with off-chain "provably fair" games on: October 19, 2013, 02:03:36 AM
huge flame, but the simple observation I made is largerly missed.

There's a difference between "you know when you've been cheated" and
"when you'be been cheated, you can prove it."

Unfortunately, the off-chain "provably fair" casions provide only the first
type of guarantee, whereas the on-chain ones provide the second type.

I don't think one needs the bitcoin blockchain to solve the problem, but
the current algorithms in off-chain casions do not provide a solution.

There's no need to complicate the situation. Whenever you make a deposit at any place (this goes way beyond off the chain games), that place is able to do anything with that. The only reason such thing does not happen is because there is no interest in doing so. You can sign messages, broadcasts them, and so on, but since you made a deposit then it's just a matter of trusting the place.

it doesn't *have* to be this way.
for example, in satoshi dice and the rest of them on-chain gambling places, there's no need for trust
180  Economy / Gambling / Re: problem with off-chain "provably fair" games on: October 18, 2013, 05:16:28 PM
huge flame, but the simple observation I made is largerly missed.

There's a difference between "you know when you've been cheated" and
"when you'be been cheated, you can prove it."

Unfortunately, the off-chain "provably fair" casions provide only the first
type of guarantee, whereas the on-chain ones provide the second type.

I don't think one needs the bitcoin blockchain to solve the problem, but
the current algorithms in off-chain casions do not provide a solution.
Pages: « 1 2 3 4 5 6 7 8 [9] 10 11 12 13 14 15 16 17 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!