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 121 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,906757 2,54%
aave
Aave (AAVE) 61,58 4,62%
the-graph
The Graph (GRT) 0,061837 2,25%
kusama
Kusama (KSM) 26,23 4,66%
waves
Waves (WAVES) 2,29 2,11%
dash
Dash (DASH) 42,85 5,44%
bitcoin
Bitcoin (BTC) 16.313,25 3,20%
ethereum
Ethereum (ETH) 1.224,94 6,49%
cardano
Cardano (ADA) 0,304307 1,55%
tether
Tether (USDT) 0,966755 0,06%
xrp
XRP (XRP) 0,389630 4,02%
solana
Solana (SOL) 13,15 0,03%
polkadot
Polkadot (DOT) 5,20 3,47%
usd-coin
USD Coin (USDC) 0,967792 0,16%
dogecoin
Dogecoin (DOGE) 0,103531 4,91%
uniswap
Uniswap (UNI) 5,52 6,74%
terra-luna
Terra Luna Classic (LUNC) 0,000157 1,24%
litecoin
Litecoin (LTC) 75,95 3,57%
chainlink
Chainlink (LINK) 7,20 1,72%
bitcoin-cash
Bitcoin Cash (BCH) 108,52 0,66%
algorand
Algorand (ALGO) 0,237246 2,45%
matic-network
Polygon (MATIC) 0,834583 3,30%
stellar
Stellar (XLM) 0,086894 1,60%
cosmos
Cosmos Hub (ATOM) 10,08 3,38%
filecoin
Filecoin (FIL) 4,25 0,51%
tron
TRON (TRX) 0,052238 0,67%
ethereum-classic
Ethereum Classic (ETC) 19,44 3,15%
dai
Dai (DAI) 0,966825 0,12%
tezos
Tezos (XTZ) 0,973593 2,12%
monero
Monero (XMR) 135,14 2,09%