Will the primary get together bear all of the charges since they’re offering the enter funds,
Sure, since they’re the one one offering enter funds.
or is there a technique to distribute this between the events?
There isn’t any method for somebody who will not be offering funds to pay transaction charges within the transaction.
Word additionally that the Bitcoin community doesn’t have any idea of which inputs contribute charges.
I simply wish to person pay funds and different get together (non person) add wanted struct and in addition I need person to not do tx (dont pay charges).
There isn’t any fastened relationship between get together that transmits (“does”) the finished transaction and the get together or events that present the inputs to the transaction. Whoever submits the finished transactions to the community needn’t be a supplier of inputs or perhaps a signatory. Persons are not charged a charge for transmitting a brand new unconfirmed transaction, the contributors offering funds prepare that sum(inputs) > sum(outputs), that’s all.
From study.saylor.org:
As I perceive it†, sighash_single (for instance) means your “person” can present in your “non-user” so as to add an additional output with out your “non-user” having to offer any inputs. The second output may include a small quantity of embedded knowledge. The financial quantity of the second output would come from sum(blue inputs) – sum(blue outputs) and depart some because the tx charge. Word additionally Transaction outputs with worth 0
† I do not use this, so caveat emptor.