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 56 times, 1 visits today)

You might be interested in

LEAVE YOUR COMMENT

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

kusama
Kusama (KSM) 171,81 2,41%
compound-governance-token
Compound (COMP) 372,83 4,41%
dash
Dash (DASH) 132,08 0,48%
zcash
Zcash (ZEC) 96,49 1,91%
yearn-finance
yearn.finance (YFI) 26.494,28 2,54%
bitcoin
Bitcoin (BTC) 31.593,12 3,00%
ethereum
Ethereum (ETH) 2.159,55 0,47%
tether
Tether (USDT) 0,840945 0,66%
cardano
Cardano (ADA) 1,13 1,35%
xrp
XRP (XRP) 0,594588 1,54%
dogecoin
Dogecoin (DOGE) 0,164104 2,61%
polkadot
Polkadot (DOT) 15,27 0,77%
usd-coin
USD Coin (USDC) 0,839934 0,58%
uniswap
Uniswap (UNI) 18,87 0,92%
bitcoin-cash
Bitcoin Cash (BCH) 442,29 2,24%
chainlink
Chainlink (LINK) 19,22 4,80%
matic-network
Polygon (MATIC) 0,857937 2,21%
solana
Solana (SOL) 30,65 4,24%
litecoin
Litecoin (LTC) 115,34 2,22%
stellar
Stellar (XLM) 0,225962 2,17%
ethereum-classic
Ethereum Classic (ETC) 41,37 1,97%
eos
EOS (EOS) 3,34 2,53%
tron
TRON (TRX) 0,056925 1,44%
filecoin
Filecoin (FIL) 46,26 2,24%
aave
Aave (AAVE) 295,30 10,01%
monero
Monero (XMR) 201,09 3,74%
dai
Dai (DAI) 0,841115 0,35%
tezos
Tezos (XTZ) 2,62 0,94%
cosmos
Cosmos (ATOM) 10,52 0,92%
algorand
Algorand (ALGO) 0,694468 0,42%