Bitcoin Technical Learning Part 3 - Digital Signature

Bitcoin Technical Learning Part 3 - Digital Signature

By xuanling11 | Crypto Learning | 7 Jan 2021


What is Digital Signature?

It is a computer code that only you can sign but anyone else can verify.

Bitcoin uses ECDSA standard or Elliptic Curve Digital Signature Algorithm.

There is a complex mathematics behind the algorithm.

However, I want to share a big picture about how such Digital Signature works.

164ebc38b76019027ea9d9eac4ffee821d2ac2599c8d5039cff6d1a58a3d2275.png

Before you continue, you can watch video below.

Here is a short well explain about digital signatures video below:

Remember Hash function which is an algorithm to generate secrete information into 256 bits of strings.

When you have a wallet, you have a pair of key - public key and private key.

268a12777f3bffdc9121530fe336092c363c2707c9c83f8b6a45d79f9fcd2f97.png

All example keys below are fictional and cannot use for any cryptocurrencies transactions!

Using EC curve algorithm, we can generate

Public key: 04ff9eaef1aa25c453d2e54831f8b9ffb6b994a5ec567c678ff7b764fc0c253eb48b75ac8e6aa3d00e4fbdb03d214c84a94dd4da06510f7a1a700e9b1fbcd8513b

fd895a4e289a582741f2c32ce50a52eb4490f0688693e8d78e2ea3bcc76f9961.png

Private key: 524bb89cb22b5b153f003fd3fdcae0b6c303158581f4a816a6cd6be1e2644cba

799d06406c9eac726c02f7a5c84ecbea0fcc679db53051d795ff5e0012afef01.png

File secretive message: hello world

3a2c490dad0d15fe526c16989876519db8490a3c52213e37a7defe786b758f01.png

Signature value: 3045022100b15d1e7d0bb8cf65ed78c705953c3ef5adff83ba19f71fdd8b9058767f43a833022076ab064cb9859d1c5cb34e58934b3864f6d609b90628d25302a866d8fc6cbde1

ff435df3c54b88af47263758b89223514a6148930497c17ed0ac875e23abff86.png

Pair keys generated by code:

6d532f3e338198a729de07979d9a1207843db5abd84c6642c7c265437bb4b861.png

Signature verify!

Using your private key to unlock and access signed message.

All example keys below are fictional and cannot use for any cryptocurrencies transactions!

Congratulation! You just complete a journey of digital signature performance!

39ba6dc528b9a439adfd2f081a9344d851e889c799db9f7ce96ce884711d6080.png

In summary, you can have a pair of key, you use both keys to sign document while public key for anyone to validate but your private key is to access your secrete message in the document and validate your public key if you want to.

You can play around here.

I hope you learn something today!

 

Here are series of Bitcoin Technical Learning below if you are interested to learn:

Bitcoin Technical Learning Part 1 - Cryptographic Hash Function

Bitcoin Technical Learning Part 2 - Hash Pointer and Merkle Tree

15b914db07d61e64b16864a37c5b78fbb8ee8632930e2ec346802d954a5ef995.png

 

How do you rate this article?

3


xuanling11
xuanling11

Check out https://www.xuanling11.com/.


Crypto Learning
Crypto Learning

All article was written by a delusional author who is possibly a nut job without any questions whatsoever about expertise in the subject matters.

Publish0x

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.

Page not displaying correctly?