Bitcoin Transaction Components

Generate (PrivateKey, PublicKey) pair

PrivateKey

It's your Secret and must not share with anyone.

PublicKey

It's your plain address. It's infeasible to compute PrivateKey from PublicKey.

Address:

It's the encoded PublicKey which is Lockbox where some money is deposited that only a Particular PrivateKey can open. The money inside, of course can only be accessed by the owner who has the PrivateKey. It's like a one-way safe that can receive deposits from anyone.

Previous Transaction ID (Hash)

Double SHA256 of Previous Transaction

Previous Transaction Index

Output Index.

Taken from Book "Programming Bitcoin by Jimmy Song."