A thread to know more about Ethereum accounts:
· definition
· account types
· account differences
· account fields
· private and public keys
· account creation
· keep your private key secret!
· contract account
· accounts and wallets
Source: Ethereum docs
↓
DEFINITION of Ethereum Account
It's an entity with an ether (ETH) balance.
Accounts can send transactions on the Ethereum network.
Accounts can be:
- user-controlled.
- deployed as smart contracts.
ACCOUNT TYPES
Two account types:
- Externally-owned: controlled by anyone with the private keys.
- Contract: a smart contract deployed to the network, controlled by code.
Both account types can:
- receive/hold/send ETH and tokens.
- Interact with deployed smart contracts.
ACC DIFFERENCES
Externally-owned:
- No Creation Cost
- Can initiate transactions
- Transactions can only be ETH/token transfers
Contract:
- Creation cost
- Transactions only as responses to other transactions
- Transactions external -> contract account can trigger code/actions
ACCOUNT FIELDS:
- nonce: Transaction counter.
- balance: WEI owned by the address.
- codeHash: Code of an account on the EVM
- storageRoot: 256-bit hash of the root node of a Merkle Patricia trie. It encodes the storage contents of the account.
KEY-PAIRS FOR EXTERNALLY-OWNED ACCOUNTS
Accounts are made up of public and private key pairs.
The private key is used to sign transactions, so it grants custody over the funds associated with the account.
ACCOUNT CREATION
Creating an account on Ethereum by generating a private key is easy.
Private key:
- made up of 64 hex characters
- can be password-encrypted
Public key: generated from the private key
Public address:
0x + the last 20 bytes of the Keccak-256 public key hash
KEEP THE PRIVATE KEY SECRET
It's possible to derive new public keys from your private key. Never the opposite.
The private key is used to sign messages and transactions which output a signature, which can be verified by others in the network.
CONTRACT ACCOUNTS
They have a 42 character hex address:
Contract Address: usually given when a contract is deployed to the Ethereum Blockchain. It comes from the creator's address and the nonce.
WALLETS = ACCOUNTS?
An account is NOT a wallet!
Account:
is the key pair for an Ethereum account owned by a user.
Wallet:
is an interface or app that lets you interact with your Ethereum account.
Source: the Ethereum docs
If you find this interesting, consider following me @FrancescoCiull4 and sharing this thread.
The question I get most often about containerization is: "What is a container?".
Let's make it simple, with my 2 favorite definitions:
1. From a logical point of view, it's a single and packaged unit of software.
2. From a technical point of view, it's an isolated process.
↓
From a logical point of view, more understandable for a human, a container can be considered as a single unit of working software, with all its configurations and dependencies, packaged.
In this way, it can run quickly and reliably from one computer to another.
A container has its own dedicated filesystem, provided by an image.
The image contains:
-dependencies
-configuration
-binaries
-environment variables
-other important data related to the container to be instantiated.
My goal is to help with Docker, content creation, and share my Web3 journey
My goal for 2022 is to IMPROVE📈
- the content's quality
- the quality of the connections with people
Follow me, you will not regret that
Have a great year! (sometimes I am funny)
I am very active on YouTube, here is the link.
The main activity here is to interview people, but occasionally I create some big events and make some experiments youtube.com/channel/UCBRxD…
I am also active on Twitch.
Here I am very focused on the coding part so if you like the tech part you should follow me there twitch.tv/francesco_ciul…
Thank you to all the @portainerio team and for the collaborations during 2021
Special Thanks to @hrittikhere, we made amazing live streams together!
You can see a recap of all videos with the team below.
Oh and thank you for the nice SWAG!👕🖊🧦📘
How to install Portainer with Docker.
This has been the very first video, and in 4 minutes, I explain how you can install Portainer using Docker (yes you got it right). Very straightforward video.
Portainer Tech Show
First show with the Portainer Team, I really enjoyed this as it's a relaxed yet interesting chat with the Portainer team.
Csaba is super talented and tweets about web development, color associations for websites. He is also a master of side projects, you should really check them!
One of the kindest people on Twitter. She is PM at Hashnode and Developer Advocate at Dasha. Introverted like me, but when she will start for real she will become unstoppable, I am sure about that.