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 66 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) 3,65 10,95%
aave
Aave (AAVE) 279,55 3,55%
the-graph
The Graph (GRT) 0,822289 13,64%
kusama
Kusama (KSM) 311,80 7,70%
waves
Waves (WAVES) 24,42 1,92%
dash
Dash (DASH) 153,07 11,58%
bitcoin
Bitcoin (BTC) 50.910,50 3,10%
ethereum
Ethereum (ETH) 3.452,09 5,14%
cardano
Cardano (ADA) 1,67 9,98%
tether
Tether (USDT) 0,861809 0,21%
xrp
XRP (XRP) 0,870427 10,25%
solana
Solana (SOL) 161,73 7,99%
polkadot
Polkadot (DOT) 35,30 8,89%
usd-coin
USD Coin (USDC) 0,861809 0,34%
dogecoin
Dogecoin (DOGE) 0,203653 9,13%
uniswap
Uniswap (UNI) 21,16 8,81%
terra-luna
Terra (LUNA) 34,77 9,26%
litecoin
Litecoin (LTC) 157,25 10,88%
chainlink
Chainlink (LINK) 25,54 11,42%
bitcoin-cash
Bitcoin Cash (BCH) 480,11 9,37%
algorand
Algorand (ALGO) 1,58 9,92%
matic-network
Polygon (MATIC) 1,64 3,53%
stellar
Stellar (XLM) 0,288701 10,94%
cosmos
Cosmos (ATOM) 32,68 8,42%
filecoin
Filecoin (FIL) 47,80 11,41%
tron
TRON (TRX) 0,079396 9,94%
ethereum-classic
Ethereum Classic (ETC) 42,69 10,05%
dai
Dai (DAI) 0,861809 0,21%
tezos
Tezos (XTZ) 5,19 11,85%
monero
Monero (XMR) 224,06 7,54%