Reader small image

You're reading from  Blockchain for Enterprise

Product typeBook
Published inSep 2018
Reading LevelBeginner
PublisherPackt
ISBN-139781788479745
Edition1st Edition
Languages
Concepts
Right arrow
Author (1)
Narayan Prusty
Narayan Prusty
author image
Narayan Prusty

Narayan Prusty is a full-stack developer. He works as a consultant for various start-ups around the world. He has worked on various technologies and programming languages but is very passionate about JavaScript, WordPress, Ethereum, Solr, React, Cordova, MongoDB, and AWS. Apart from consulting for various start-ups, he also runs a blog titled QNimate and a video tutorial site titled QScutter, where he shares information about a lot of the technologies he works on.
Read more about Narayan Prusty

Right arrow

Ethereum accounts


To create an account, we just need an asymmetric key pair. There are various algorithms, such as Rivest–Shamir–Adleman (RSA) and Elliptic Curve Cryptography (ECC) for generating asymmetric key pairs. Ethereum uses ECC. ECC has various curves. These curves have a different speed and security. Ethereum uses  secp256k1 curves. To go in to  ECC and it's curves will require mathematical knowledge, and it's not necessary to understand it in depth to build DApps using Ethereum.

Ethereum uses 256-bit encryption. An Ethereum private and public key is a 256-bit number. As processors cannot represent such big numbers therefore it's always encoded as a hexadecimal string of length 64. 

Every account is represented by an address. Once we have the keys we need to generate the address,here is the procedure to generate the address, and here is the procedure to generate the address from the public key:

  1. First, generate the Keccak-256 hash of the public key. It will give you a 256-bit number...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Blockchain for Enterprise
Published in: Sep 2018Publisher: PacktISBN-13: 9781788479745

Author (1)

author image
Narayan Prusty

Narayan Prusty is a full-stack developer. He works as a consultant for various start-ups around the world. He has worked on various technologies and programming languages but is very passionate about JavaScript, WordPress, Ethereum, Solr, React, Cordova, MongoDB, and AWS. Apart from consulting for various start-ups, he also runs a blog titled QNimate and a video tutorial site titled QScutter, where he shares information about a lot of the technologies he works on.
Read more about Narayan Prusty