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

You might be interested in

LEAVE YOUR COMMENT

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

tether
Tether (USDT) 0,828356 0,12%
usd-coin
USD Coin (USDC) 0,828356 0,63%
zcash
Zcash (ZEC) 101,27 9,66%
tezos
Tezos (XTZ) 3,01 6,11%
uniswap
Uniswap (UNI) 20,49 11,34%
bitcoin
Bitcoin (BTC) 40.770,03 8,21%
bitcoin-cash
Bitcoin Cash (BCH) 412,02 6,57%
ethereum
Ethereum (ETH) 1.287,15 8,50%
litecoin
Litecoin (LTC) 145,34 6,43%
dash
Dash (DASH) 178,20 7,54%
cardano
Cardano (ADA) 1,09 0,94%
chainlink
Chainlink (LINK) 22,60 8,78%
compound-governance-token
Compound (COMP) 404,61 21,44%
cosmos
Cosmos (ATOM) 15,23 3,15%
dai
Dai (DAI) 0,828356 0,57%
monero
Monero (XMR) 188,28 2,22%
omisego
OMG Network (OMG) 3,78 5,45%
polkadot
Polkadot (DOT) 29,31 2,54%
siacoin
Siacoin (SC) 0,008357 5,37%
stellar
Stellar (XLM) 0,350337 2,32%