Blockchain in Javascript – Signing transactions (Part 4)

Transactions on a blockchain have to be signed with a private key. This makes sure that people can only spend coins if they have the private key of their wallet.

In this video we will refactor our Javascript blockchain so that it will only accept signed transactions.

We’ll use the secp256k1 elliptic curve to generate a keypair. The same algorithm used in Bitcoin. But you can use other algorithms as well.

🤲 Source code
Available on GitHub:
https://github.com/SavjeeTutorials/SavjeeCoin

(Visited 175 times, 1 visits today)

You might be interested in

LEAVE YOUR COMMENT

Your email address will not be published. Required fields are marked *

eos
EOS (EOS) 0,679014 3,86%
aave
Aave (AAVE) 78,14 3,21%
the-graph
The Graph (GRT) 0,223946 6,27%
kusama
Kusama (KSM) 28,09 2,76%
waves
Waves (WAVES) 2,38 7,68%
dash
Dash (DASH) 25,94 1,66%
bitcoin
Bitcoin (BTC) 57.466,46 4,49%
ethereum
Ethereum (ETH) 2.793,07 4,14%
cardano
Cardano (ADA) 0,415160 3,56%
tether
Tether (USDT) 0,942444 0,03%
xrp
XRP (XRP) 0,461235 1,77%
solana
Solana (SOL) 123,05 6,80%
polkadot
Polkadot (DOT) 6,14 2,24%
usd-coin
USDC (USDC) 0,941502 0,00%
dogecoin
Dogecoin (DOGE) 0,136085 7,44%
uniswap
Uniswap (UNI) 6,49 3,06%
terra-luna
Terra Luna Classic (LUNC) 0,000091 4,71%
litecoin
Litecoin (LTC) 74,56 0,26%
chainlink
Chainlink (LINK) 12,23 3,46%
bitcoin-cash
Bitcoin Cash (BCH) 435,83 3,45%
algorand
Algorand (ALGO) 0,155702 4,42%
matic-network
Polygon (MATIC) 0,620790 5,91%
stellar
Stellar (XLM) 0,100251 2,54%
cosmos
Cosmos Hub (ATOM) 7,53 1,74%
filecoin
Filecoin (FIL) 5,44 3,94%
tron
TRON (TRX) 0,102737 3,22%
ethereum-classic
Ethereum Classic (ETC) 23,68 4,62%
dai
Dai (DAI) 0,941502 0,03%
tezos
Tezos (XTZ) 0,876391 6,34%
monero
Monero (XMR) 108,78 7,04%