Bitcoin Forum

Other => Beginners & Help => Topic started by: Sev3n on January 10, 2012, 04:05:54 AM



Title: Bundleing transactions
Post by: Sev3n on January 10, 2012, 04:05:54 AM
Im planning on launching a site before long, and have seen some sites that bundle transactions to reduce the fees. Im fairly new to bitcoin and was wondering how this was done. Is it simple? Are there special tools? Sorry If this a super newbie question.


Title: Re: Bundleing transactions
Post by: DeathAndTaxes on January 10, 2012, 04:08:44 AM
sendmany RPC is the normal method.


Title: Re: Bundleing transactions
Post by: nooblet on January 10, 2012, 12:55:12 PM
Am I getting this right ?

You can have one big transaction and pay just one fee for that big transaction BUT in that big transaction also have like 10 or more transfers of coins / secondary transactions too ?


Title: Re: Bundleing transactions
Post by: DeathAndTaxes on January 10, 2012, 01:35:00 PM
Am I getting this right ?

You can have one big transaction and pay just one fee for that big transaction BUT in that big transaction also have like 10 or more transfers of coins / secondary transactions too ?

Yes except Bitcoin doesn't consider them secondary transactions.

Bitcoin just sees everything as moving coins.

You have inputs (address you control) and outputs (address you want to send/pay/load).

You can have 1+ inputs and 1+ outputs.

When casascius (bitcoin coins) loaded some coins he showed a single transaction with hundreds (thousands?) of outputs.


Title: Re: Bundleing transactions
Post by: caveden on January 10, 2012, 01:39:09 PM
Am I getting this right ?

You can have one big transaction and pay just one fee for that big transaction BUT in that big transaction also have like 10 or more transfers of coins / secondary transactions too ?

Yes, but normally the fee you pay is proportional to the transaction size anyway.

Actually, this leaves me with a doubt too. What is actually signed by the inputs of a transaction? Is it the entire output list, or a constant size hash of such output list? Because if it is the former, I guess you risk using more space with bundle transactions, since you'd have to sign every output with every input.


Title: Re: Bundleing transactions
Post by: DeathAndTaxes on January 10, 2012, 01:43:51 PM
Am I getting this right ?

You can have one big transaction and pay just one fee for that big transaction BUT in that big transaction also have like 10 or more transfers of coins / secondary transactions too ?

Yes, but normally the fee you pay is proportional to the transaction size anyway.

Actually, this leaves me with a doubt too. What is actually signed by the inputs of a transaction? Is it the entire output list, or a constant size hash of such output list? Because if it is the former, I guess you risk using more space with bundle transactions, since you'd have to sign every output with every input.

Since signing is computationally intensive (and directly linear to the size of the digest) you sign a hash of the data.  This applies to other forms of cryptographic signing than just Bitcoin.  This is why security of hash functions is taken so seriously, if the hash function is flawed you can spoof a digital signature even if the signing algorithm is secure.

Signing: transaction -> hash -> hash signed w/ private key.
Verifying: transaction -> recreate hash -> sign hash w/ public key and verify against recreated hash.


Title: Re: Bundleing transactions
Post by: caveden on January 10, 2012, 01:49:14 PM
I imagined it. Thanks for confirming.