Bitcoin Forum
April 16, 2024, 09:16:26 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: question on transaction processors  (Read 148 times)
Nheer (OP)
Sr. Member
****
Offline Offline

Activity: 434
Merit: 500



View Profile WWW
February 23, 2023, 02:07:15 PM
Merited by ABCbits (1), RockBell (1)
 #1

There is a part I don't seem to understand properly so I have decided to ask here again I hope I get answers to my questions.
So I have been studying and I read that transactions in blocks do not contain IDs, so I've been wondering where on the node the IDs of transactions are kept. Or Are they stored on blocks?
-Also, Could someone help me explain better what transaction processor is and what part of the transaction the transaction processors actually create?

R


▀▀▀▀▀▀▀██████▄▄
████████████████
▀▀▀▀█████▀▀▀█████
████████▌███▐████
▄▄▄▄█████▄▄▄█████
████████████████
▄▄▄▄▄▄▄██████▀▀
LLBITCRYPTO
FUTURES
[
1,000x
LEVERAGE
][
.
COMPETITIVE
FEES
][
INSTANT
EXECUTION
]██████
██
██
██
██
██
██
██
██
██
██
██
██████
████████████████████████████████████████████████████████
.
TRADE NOW
.
████████████████████████████████████████████████████████
██████
██
██
██
██
██
██
██
██
██
██
██
██████
1713258986
Hero Member
*
Offline Offline

Posts: 1713258986

View Profile Personal Message (Offline)

Ignore
1713258986
Reply with quote  #2

1713258986
Report to moderator
1713258986
Hero Member
*
Offline Offline

Posts: 1713258986

View Profile Personal Message (Offline)

Ignore
1713258986
Reply with quote  #2

1713258986
Report to moderator
"With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713258986
Hero Member
*
Offline Offline

Posts: 1713258986

View Profile Personal Message (Offline)

Ignore
1713258986
Reply with quote  #2

1713258986
Report to moderator
1713258986
Hero Member
*
Offline Offline

Posts: 1713258986

View Profile Personal Message (Offline)

Ignore
1713258986
Reply with quote  #2

1713258986
Report to moderator
NeuroticFish
Legendary
*
Offline Offline

Activity: 3640
Merit: 6346


Looking for campaign manager? Contact icopress!


View Profile
February 23, 2023, 02:33:13 PM
Merited by pooya87 (2), ABCbits (2)
 #2

So I have been studying and I read that transactions in blocks do not contain IDs, so I've been wondering where on the node the IDs of transactions are kept. Or Are they stored on blocks?

I recommend you take a look into:
https://learnmeabitcoin.com/technical/txid
https://en.bitcoin.it/wiki/Transaction
These links should explain it better than I'd do (since I'm not that good at the internals).

However, shortly: the first link tells how tx id can be easily obtained from the transaction itself:

You get a TXID by hashing transaction data through SHA256 twice.


I will add that while tx ids seem to not be stored in the actual blockchain, Bitcoin Core does store the tx ids of unspent transactions (UTXO) in chainstate folder (levelDb), read:
https://bitcoin.stackexchange.com/questions/28168/what-are-the-keys-used-in-the-blockchain-leveldb-ie-what-are-the-keyvalue-pair



-Also, Could someone help me explain better what transaction processor is and what part of the transaction the transaction processors actually create?

I am not sure what you mean here.
All the nodes validate transactions and forward them (one node's mempool may be different from another's), hence they can be seen as processors.
The miners are the "ultimate" processors because they add the transactions into blocks.
But none of them would alter a transaction (transaction created and signed by the sender). So.. I am not sure what you mean.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5814


not your keys, not your coins!


View Profile WWW
February 23, 2023, 03:36:21 PM
 #3

-Also, Could someone help me explain better what transaction processor is and what part of the transaction the transaction processors actually create?
If you mean payment processor, that term usually refers to companies offering Bitcoin payments as a service; if you want to offer Bitcoin as a payment method on your own website and don't like to host the software yourself.

In that case, they create the whole transaction and have complete access to customer funds. I would recommend against such custodial solutions and self-host something like BTCPayServer.



In regular (self-custodial / non-custodial) wallets, you yourself create the whole transaction. Nobody else creates any part of the transaction except your own wallet. It constructs all the fields like described on Learnmeabitcoin.com and signs it. Then it is broadcast to the network.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
DannyHamilton
Legendary
*
Offline Offline

Activity: 3360
Merit: 4570



View Profile
February 24, 2023, 03:59:09 AM
Merited by ABCbits (4), NeuroticFish (3), PowerGlove (1)
 #4

I've been wondering where on the node the IDs of transactions are kept.

There is no need to keep the transaction ID of the transactions that have had all of their outputs spent.  They can be recreated at any time by simply hashing the transaction data.  Unspent transaction outputs are stored by each node in its own mempool.

Or Are they stored on blocks?

The transaction data (version, inputs, outputs, locktime, etc) are stored in the blocks.  The transaction ID can be quickly and easily calculated for any transaction by simply hashing the data.

Could someone help me explain better what transaction processor is and what part of the transaction the transaction processors actually create?

What do you mean by "processor"?

Every node verifies the validity of every transaction it receives and then forwards that transaction to the peers it is connected to.  It doesn't create or modify the contents of the transaction.

Solo miners (and mining pools) gather transactions together into a block, create a set of data (called a header) to identify that collection, and then complete a proof-of-work on that header.  They then broadcast the completed block to all their connected peers.  They CREATE blocks, but they don't create or modify transactions at all.

Users of bitcoin run wallet software that creates transactions based on the details that they provide to that wallet software (address, value, possibly source of funds). The wallet software builds the transaction and provides the neccessary digital signatures, then it sends copies of the transaction to all connected peers.

Service providers store bitcoin on behalf of their customers. They run their own wallet software and create transactions using that wallet software when their customers ask them to.  They can also monitor the blockchain and the network communications to notify their customers when they receive new transactions on behalf of their customers.
Nheer (OP)
Sr. Member
****
Offline Offline

Activity: 434
Merit: 500



View Profile WWW
February 26, 2023, 06:03:10 AM
 #5

So I have been studying and I read that transactions in blocks do not contain IDs, so I've been wondering where on the node the IDs of transactions are kept. Or Are they stored on blocks?

I recommend you take a look into:
https://learnmeabitcoin.com/technical/txid
https://en.bitcoin.it/wiki/Transaction
These links should explain it better than I'd do (since I'm not that good at the internals).

However, shortly: the first link tells how tx id can be easily obtained from the transaction itself:
thank you for the links, learnmeabitcoin have explained it all easily and simply i now have a better understanding about the transaction ID. This site is very helpful for beginners it explains and breaks everything down easily. Transaction IDs are not stored in the blockchain but bitcoin core rather.

I appreciate your efforts all, i will not hesitate to ask when i feel the need.

R


▀▀▀▀▀▀▀██████▄▄
████████████████
▀▀▀▀█████▀▀▀█████
████████▌███▐████
▄▄▄▄█████▄▄▄█████
████████████████
▄▄▄▄▄▄▄██████▀▀
LLBITCRYPTO
FUTURES
[
1,000x
LEVERAGE
][
.
COMPETITIVE
FEES
][
INSTANT
EXECUTION
]██████
██
██
██
██
██
██
██
██
██
██
██
██████
████████████████████████████████████████████████████████
.
TRADE NOW
.
████████████████████████████████████████████████████████
██████
██
██
██
██
██
██
██
██
██
██
██
██████
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!