Bitcoin Forum
December 24, 2025, 06:18:00 PM *
News: Latest Bitcoin Core release: 30.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [b]what exactly does a bitcoin wallet do when you are making transaction[/b]  (Read 188 times)
hmbdofficial (OP)
Jr. Member
*
Offline Offline

Activity: 42
Merit: 2


View Profile
December 02, 2025, 02:21:35 PM
 #1

I was trying to understand how the bitcoin wallet work. Since it is said that the private key it self deos not appear publicly in the blockchain, how do the system identifies it. I assume it is only used when generating degital signatures that will unlock output generated.

In addition I want to knw how secured it is if we generate our own random number on our computer to generate the private key. Is it safe to do that?
Cookdata
Legendary
*
Offline Offline

Activity: 1526
Merit: 1175


Not Your Keys, Not Your Bitcoin


View Profile
December 02, 2025, 02:41:21 PM
Merited by pooya87 (5), LoyceV (4), hugeblack (4), BlackHatCoiner (4), ABCbits (3), The Cryptovator (2), Charles-Tim (1)
 #2

I was trying to understand how the bitcoin wallet work. Since it is said that the private key it self deos not appear publicly in the blockchain, how do the system identifies it. I assume it is only used when generating degital signatures that will unlock output generated.

The network doesn't need your private key, it recognized it from the signature and the public key.

When someone send you Bitcoin, that Bitcoin is lock on that public key hash and only a valid signature can unlock that Bitcoin.

To spend the Bitcoin, the network doesn't need your private key, so instead your private key produce a signature and a public key that match the scriptpubkey, once they match each other the network allows that Bitcoin to be spend to another wallet address, this way your private key isn't sacrifice on the network and nobody will see it.


Quote
In addition I want to knw how secured it is if we generate our own random number on our computer to generate the private key. Is it safe to do that?

It's safe if you do it but randomness and entropy is very important. Why not make use of the laptop as an airgap device, no internet, no Bluetooth and then create a safe seed phrase to have addresses and their private keys. This helps you manage your private keys properly instead of bunch of keys.

Hypnotizer
Member
**
Offline Offline

Activity: 112
Merit: 100


View Profile
December 02, 2025, 02:48:56 PM
 #3

I was trying to understand how the bitcoin wallet work.

The bitcoin wallet manages your keys, check you funds on the blockchain, constructs transactions, sign and broadcast it to the network

Charles-Tim
Legendary
*
Offline Offline

Activity: 2128
Merit: 6122


Leading Crypto Sports Betting & Casino Platform


View Profile
December 02, 2025, 02:56:47 PM
Merited by pooya87 (5), ABCbits (1)
 #4

With the help of digital signature, you can sign a bitcoin transaction without letting anyone see your private key. I think that is the question you asked?

You can read about this to know more about digital signature in bitcoin transaction: https://learnmeabitcoin.com/beginners/guide/digital-signatures/

In addition I want to knw how secured it is if we generate our own random number on our computer to generate the private key. Is it safe to do that?
If you know what you are doing, it is safe. But I will advise you to use a reputed wallet instead of generating your own entropy or private key on your own.

..Stake.com..   ▄████████████████████████████████████▄
   ██ ▄▄▄▄▄▄▄▄▄▄            ▄▄▄▄▄▄▄▄▄▄ ██  ▄████▄
   ██ ▀▀▀▀▀▀▀▀▀▀ ██████████ ▀▀▀▀▀▀▀▀▀▀ ██  ██████
   ██ ██████████ ██      ██ ██████████ ██   ▀██▀
   ██ ██      ██ ██████  ██ ██      ██ ██    ██
   ██ ██████  ██ █████  ███ ██████  ██ ████▄ ██
   ██ █████  ███ ████  ████ █████  ███ ████████
   ██ ████  ████ ██████████ ████  ████ ████▀
   ██ ██████████ ▄▄▄▄▄▄▄▄▄▄ ██████████ ██
   ██            ▀▀▀▀▀▀▀▀▀▀            ██ 
   ▀█████████▀ ▄████████████▄ ▀█████████▀
  ▄▄▄▄▄▄▄▄▄▄▄▄███  ██  ██  ███▄▄▄▄▄▄▄▄▄▄▄▄
 ██████████████████████████████████████████
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
█  ▄▀▄             █▀▀█▀▄▄
█  █▀█             █  ▐  ▐▌
█       ▄██▄       █  ▌  █
█     ▄██████▄     █  ▌ ▐▌
█    ██████████    █ ▐  █
█   ▐██████████▌   █ ▐ ▐▌
█    ▀▀██████▀▀    █ ▌ █
█     ▄▄▄██▄▄▄     █ ▌▐▌
█                  █▐ █
█                  █▐▐▌
█                  █▐█
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀█
▄▄█████████▄▄
▄██▀▀▀▀█████▀▀▀▀██▄
▄█▀       ▐█▌       ▀█▄
██         ▐█▌         ██
████▄     ▄█████▄     ▄████
████████▄███████████▄████████
███▀    █████████████    ▀███
██       ███████████       ██
▀█▄       █████████       ▄█▀
▀█▄    ▄██▀▀▀▀▀▀▀██▄  ▄▄▄█▀
▀███████         ███████▀
▀█████▄       ▄█████▀
▀▀▀███▄▄▄███▀▀▀
..PLAY NOW..
pooya87
Legendary
*
Offline Offline

Activity: 4032
Merit: 12110



View Profile
December 04, 2025, 04:28:27 AM
Merited by hugeblack (4), BlackHatCoiner (4), ABCbits (2), The Cryptovator (2)
 #5

To truly understand that, you need to understand the concept behind Asymmetric Cryptography. In this type of cryptography we have a key pair (a public key and a private key) and one-way mathematical functions (eg. EC multiplication where you can compute a public key from a private key but you cannot compute the private key by having the public key). That irreversibility means you can safely share your public key, and this is important for verification step below.

When you want to prove you are the owner of a private key, you have to produce something called "digital signature" using one of those mathematical functions (in this case ECDSA). This signature can be verified by anyone who has the message (in this case the transaction) and your public key.

Satoshi took these concepts and created a stack-based Forth-like language known as "bitcoin scripts" that act as smart contracts. They contain certain commands and conditions that need to be met for them to "pass" and your transaction to be valid. "learnmeabitcoin" link above explains them well enough. Usually it is a simple single signature verification using ECDSA with the public key you provide in the signature script.
That way your coins are only spendable by you, assuming you are the only one holding the private key.

ABCbits
Legendary
*
Offline Offline

Activity: 3458
Merit: 9508



View Profile
December 04, 2025, 08:50:18 AM
 #6

Since it is said that the private key it self deos not appear publicly in the blockchain, how do the system identifies it. I assume it is only used when generating degital signatures that will unlock output generated.

I just want to remind that private key is also used to generate public key and public key is used to generate address.

In addition I want to knw how secured it is if we generate our own random number on our computer to generate the private key. Is it safe to do that?

Proper wallet use secure RNG (e.g. /dev/urandom). Usually it's more secure/safe compared with people who try to generate their own private key.

hmbdofficial (OP)
Jr. Member
*
Offline Offline

Activity: 42
Merit: 2


View Profile
December 04, 2025, 09:03:50 AM
 #7



Proper wallet use secure RNG (e.g. /dev/urandom). Usually it's more secure/safe compared with people who try to generate their own private key.

Thank you so much for identifying this. it really opened my mind to every other comment from this thread. I’m learning a lot from this forum. now I can say have understood what bitcoin does when we make a transaction just from this thread.
Im really happy I’m getting the right information with less stress. thank you all
BlackHatCoiner
Legendary
*
Offline Offline

Activity: 1876
Merit: 9193


Bitcoin is ontological repair


View Profile
December 05, 2025, 05:19:23 PM
 #8

The ECC (elliptic curve cryptography) questions are the best kind of questions. Learnmeabitcoin and Mastering Bitcoin are two good places to learn more about the ECC that is used in bitcoin.

In addition I want to knw how secured it is if we generate our own random number on our computer to generate the private key. Is it safe to do that?
It's generally considered safe to use RNG like /dev/urandom and most reputable wallet software use that, but if you're extremely paranoid with random number generation, you can use a dice. There are many airgapped devices that allow you to import the results of dice rolls (or coin tosses) to create your seed phrase. One of them is seed signer, and I've written a review about it in here. Coldcard also supports dice rolls, IIRC.



▄▄▄▄▄▄▄▄▄▄▄░▄▄▄▄▄███▄▄▄▄▄▄▄▄▄███▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄░▄▄▄▄▄▄░░▄▄▄▄▄▄▄▄▄▄▄▄▄▄░▄▄▄▄▄░▄▄▄▄▄▄▄░███████████████████░░████████▄▄░███████████████████████████████
▄█████████████████████████████████████████████████████████████░░██████████▄█████████████████▀▀███████████▀
████████████████████████████████████████████████████████████░░█████████████████████████▀████▄███████▀░░
████▄▄███████████████████████████████▄▄██████████████████████░▄██████████████████████████▄███▄███████░░░░
▀█████████████████████████████████████████████████████▀██████████████████▀▀████████████████▄▄▄█████████▄░░
██████████░▀███▀█████████████▀░▀████▀███████▀█████████████▀████████████████░░▀▀████████░▀█████████████████▄
█████████████▀███████▀▀▀████▀████▀████▀░░▀██████████████████
█████████████████████████████████████████████████████████████████████████████████▀▀▀▀▀▀
███████████████████████████████████████████████▀███▀
.
..100% WELCOME BONUS  NO KYC  UP TO 15% CASHBACK....PLAY 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!