Bitcoin Forum
November 05, 2024, 11:38:05 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: I have a question regarding asymmetric cryptography  (Read 142 times)
udayantha11 (OP)
Member
**
Offline Offline

Activity: 798
Merit: 17

2023 would most likely be as bearish as 2022


View Profile WWW
October 07, 2022, 12:42:59 PM
 #1



I have a question that , If i send BTC to someone on the network. First, encrypt a message with the public key of the recipient and the receiver decrypt the message with the reciepents private key. Is this the way when we send btc to another wallet??? please explain


The second question is all the nodes are not miners and all the miners are nodes. is this statement correct? 

we all need universal power and cyclist of Everything
-2023 would most likely be as bearish as 2022-
=BTC will make it, but might be a long winter=

Stronger the storm, brighter the rainbow
mocacinno
Legendary
*
Offline Offline

Activity: 3556
Merit: 5187


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
October 07, 2022, 12:45:22 PM
Merited by DdmrDdmr (3), pooya87 (2), hosseinimr93 (2), ABCbits (1)
 #2



I have a question that , If i send BTC to someone on the network. First, encrypt a message with the public key of the recipient and the receiver decrypt the message with the reciepents private key. Is this the way when we send btc to another wallet??? please explain
No... Very simplified, it's about signatures and not about encryption and decryption of messages. It's about being able to prove you are the rightfull owner of an unspent output by being able to provide a valid digital signature when spending said unspent output. There are other possibility's to spend unspent outputs aswell, but that's even more complex to explain (so i won't go into this).

The second question is all the nodes are not miners and all the miners are nodes. is this statement correct?  
That's correct. At least, if you mean that not ALL nodes are miners, but ALL miners do require a node to be able to mine.

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Charles-Tim
Legendary
*
Offline Offline

Activity: 1722
Merit: 5198


Leading Crypto Sports Betting & Casino Platform


View Profile
October 07, 2022, 01:01:29 PM
 #3

The second question is all the nodes are not miners and all the miners are nodes. is this statement correct? 
That's correct. At least, if you mean that not ALL nodes are miners, but ALL miners do require a node to be able to mine.

Yes, not all nodes are miners, anyone can run there own node without being a miner. But how about all miners do require a node to be able to mine? Solo miners and mining pool are the ones I thought would run their own node while other miners would join mining without needing a node for it if they join mining pool.

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

Activity: 3556
Merit: 5187


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
October 07, 2022, 01:07:24 PM
Merited by Charles-Tim (1)
 #4

--snip--

Yes, not all nodes are miners, anyone can run there own node without being a miner. But how about all miners do require a node to be able to mine? Solo miners and mining pool are the ones I thought would run their own node while other miners would join mining without needing a node for it if they join mining pool.

In case of pool miners, it's the pool that needs access to a full node, so the pool miners still indirectly need a full node to mine. But you are correct, a pool miner doesn't need a full node him/herself.

█▀▀▀











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











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

Activity: 2576
Merit: 5668



View Profile
October 07, 2022, 01:11:19 PM
 #5

I have a question that , If i send BTC to someone on the network. First, encrypt a message with the public key of the recipient
To add to mocacinno's reply:
Take note that when you want to make a transaction, usually you don't have the public key of the recipient at all.
For example, in a P2PKH (Pay To Public Key Hash) transaction, you make a transaction to a public key hash (which is known as address) and require the receiver to provide a valid signature to unlock the output.

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
Charles-Tim
Legendary
*
Offline Offline

Activity: 1722
Merit: 5198


Leading Crypto Sports Betting & Casino Platform


View Profile
October 07, 2022, 01:28:35 PM
 #6

In case of pool miners, it's the pool that needs access to a full node, so the pool miners still indirectly need a full node to mine. But you are correct, a pool miner doesn't need a full node him/herself.
Just trying to point out something there to make it not confusing, that miners that join mining pool do not need to run their own node before mining. I know you understood this and I perfectly understand what you meant. Definitely, any miner among the miners that join the mining pool would have to depend on the mining pool node.

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

Activity: 3626
Merit: 11009


Crypto Swap Exchange


View Profile
October 09, 2022, 04:38:49 AM
 #7

You should also know that there is a difference between "encryption" and "signing" in asymmetric cryptography.
In encryption the message is not known (publicly) and the encrypted result has an arbitrary length where the person with the private key decrypts to read.
In signing the message must be known alongside the signature and its correctness can be verified by anyone.

We don't use encryption in Bitcoin protocol.

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Saint-loup
Legendary
*
Offline Offline

Activity: 2786
Merit: 2428



View Profile
October 09, 2022, 09:04:25 PM
 #8



I have a question that , If i send BTC to someone on the network. First, encrypt a message with the public key of the recipient and the receiver decrypt the message with the reciepents private key. Is this the way when we send btc to another wallet??? please explain


The second question is all the nodes are not miners and all the miners are nodes. is this statement correct?  
This is not the way transactions are created and sent to someone else, transactions are not encrypted, they are signed as explained by some other members above, and they have to be accepted and mined on the blockchain by nodes. You seem to make a confusion with the Encrypt/decrypt message feature from Electrum.
To encrypt a message with it you need to get the public key of one address belonging to the receiver, he will then be able to decrypt your message thanks to the private key of this address, but you can't send BTC through this tool and your message won't be written on the blockchain, you can send it by whatever mean you like anyway.

██
██
██
██
██
██
██
██
██
██
██
██
██
... LIVECASINO.io    Play Live Games with up to 20% cashback!...██
██
██
██
██
██
██
██
██
██
██
██
██
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!