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

馃挵 Buy Bitcoin, Ethereum, Litecoin, ..
Get $10 for free when buying through my affiliate link (thanks!):
https://goo.gl/G9NQsu

馃實 Social
Twitter: https://twitter.com/Savjee
Facebook: https://facebook.com/Savjee
Blog: https://savjee.be
馃拰 Newsletter: http://newsletter.savjee.be (no more than once a month)

鉂わ笍 Become a Simply Explained member: https://www.youtube.com/channel/UCnxrdFPXJMeHru_b4Q_vTPQ/join

source

Por admin

Deja una respuesta

Tu direcci贸n de correo electr贸nico no ser谩 publicada. Los campos obligatorios est谩n marcados con *