Posts

Showing posts with the label Ethereum

Building L1 Blockchains with EigenLayer AVS: A Guide for Substrate Developers

Image
In the ever-evolving blockchain ecosystem, scalability, validator incentives, and network security remain core challenges for Layer 1 (L1) blockchain developers. Substrate provides the perfect foundation for building customizable L1 blockchains, but integrating newer technologies like EigenLayer’s Autonomous Verifiable Service  (AVS) can help bring additional value to a project. This article will explain how Substrate developers can leverage EigenLayer's AVS for validator selection while keeping project tokens on Ethereum for liquidity. We will explore the major components of building a Substrate-based L1 blockchain with EigenLayer integration, focusing on how to choose validators, distribute rewards, and interact with Ethereum. This guide assumes you’re using Substrate Frame 2 and have a basic understanding of Substrate development. Introduction to EigenLayer AVS EigenLayer’s Active Validator Selection (AVS) system allows blockchain projects to leverage Ethereum validators thr...

Understanding Hardware Wallets

Image
Introduction In the world of cryptocurrency, managing multiple accounts securely and conveniently is paramount. Hardware wallets, such as the Ledger , SafePal and others, achieve this by utilizing a single seed phrase to manage multiple accounts. This is made possible through a concept called hierarchical deterministic (HD) wallets. In this article, we will explore the mechanics of path derivation and touch on the extent of security if the connected computer or browser wallet is compromised. Path Derivation: The Core of HD Wallets Path derivation is a method used in HD wallets to generate multiple key pairs from a single seed phrase. Each account in an HD wallet is derived from a master private key using a specific derivation path. This allows for the creation of a structured tree of key pairs, enabling a single seed phrase to manage numerous accounts. How Does It Work? When you initialize your hardware wallet, a seed phrase (12, 18, or 24 words) is generated. This seed phra...

Proof of solvency and collateral

Image
Centralized exchanges (CEXs) are a critical part of the cryptocurrency ecosystem, but they also pose a significant risk to users. In the event of a hack or bankruptcy, users can lose all of their funds. One way to mitigate this risk is to require CEXs to provide regular proof of solvency. Proof of solvency is a way for CEXs to demonstrate that they have enough assets to cover all of their user deposits. There are a number of different ways to implement proof of solvency. One simple approach is for CEXs to simply publish a list of all of their addresses and the corresponding balances. This approach is transparent and easy to verify, but it does not provide any privacy for users. Zero-knowledge Proofs A more secure approach would be for CEXes to use zero-knowledge proofs (ZKPs) to prove their solvency. ZKPs allow exchanges to prove that they have a certain amount of assets without revealing any other information about their balance sheets. This would make it much more difficult fo...

Why Solana Developers Migrate to Ethereum

Image
For developers building on Solana, the frequent network outages and performance issues over the past year have likely been a source of major frustration. The promise of high speed and low cost that initially attracted many to Solana has not panned out, with the network failing to meet expectations for stability and reliability. In contrast, Ethereum has made huge strides recently in scalability, security, and developer experience that make it an increasingly appealing alternative. It's worth taking a close look at the current state of Ethereum and considering whether migrating your Solana project might be the right move. Enhanced Scalability with Layer 2 Rollups One of the biggest knocks against Ethereum historically was limited throughput and high gas fees on the layer 1 chain. However, the emergence of layer 2 rollup solutions like Optimism, Arbitrum, and zkSync has changed the calculus. These L2s bundle many transactions together and post cryptographic proofs of their validit...

Key and Transaction Management in Ethereum

Image
Security keys are used almost everywhere within Ethereum during user interactions, and the Ethereum address is derived from the private key. In other words, the Ethereum address is the last 20 bytes of hash of the public key controlling the account with 0x appended in front. How are Ethereum addresses generated? There are three main steps to get from private -> address: Create a random private key (64 (hex) characters / 256 bits / 32 bytes) Derive the public key from this private key (128 (hex) characters / 512 bits / 64 bytes) Derive the address from this public key. (40 (hex) characters / 160 bits / 20 bytes) Even though a lot of people call the address the public key, it's actually not the case in Ethereum. There is a separate public key that acts as a middleman that you won't ever see, unless you go poking around a pre-sale wallet JSON file. Generating private key The procedure for generating private keys relies on pseudo-random number generators ...

Non-Fungible Tokens (NFTs) 101

Image
Non-Fungible Tokens (NFTs) have captured the imaginations of collectors, investors, and tech enthusiasts alike, and if your interest in NFTs and blockchain technology is growing, you will want to learn more about NFT standards. However, before you read more, if you aren’t familiar with NFTs and want to learn more about them, we suggest starting with our NFT development article. This piece will give you the background information to understand some of the technicalities we cover in this post. While investors and collectors are excited about the early popularity of digital collectibles, NFTs represent the future of blockchain technology. They will likely completely change the way digital content is created, distributed, and consumed. In addition, businesses will be able to use NFTs in several ways regarding Digital Rights Management (DRM). Businesses must take the time to understand NFTs and their underlying standards to position themselves and make competitive business decisions...

OpenSea $1,700,000 Phishing Hack Analysis

Image
OpenSea , the world's largest and most used NFT exchange, suffered a major attack on 2/19/2022, which cost users over 640 ETH worth of NFTs. Additionally, Etherscan may have suffered a coordinated DDoS attack in wake of this exploit in an attempt to block users from revoking access to their NFTs. In this write-up, I'll take a look at the smart contract ( Decompiled ) used in this attack, and break down the inner workings of what it's doing at each step. I aim to figure out how this attack happened, as well as how it can be prevented in the future. Technical Breakdown The transaction I am going to break down can be found on Etherscan . In order to get a better look at what's happening behind the scenes, I'll also use ethtx.info . The transaction begins with the attacker interacting with his contract with some calldata, which appears to be a signature for a token sale. At this time, I believe that this signature was somehow phished and stored from the vic...

Solana for Ethereum Devs: A Different World of Blockchains

Image
If you're an experienced Ethereum developer looking to explore other ecosystems, Solana is definitely worth checking out. While there are some high-level similarities - they're both Layer 1 smart contract platforms after all - when you peek under the hood, the differences become quite stark. Let's dive in and see how Solana compares to Ethereum in terms of architecture, execution, accounts, and more. A Radically Different Architecture First, a quick primer on how Ethereum works to set the stage. Ethereum relies on the tried-and-true proof-of-work (PoW) consensus mechanism, where miners compete to add blocks to the chain. Smart contracts are executed by the Ethereum Virtual Machine (EVM) in a sequential manner. Scaling is achieved through sharding and rollups. Solana takes a very different approach with its proof-of-history (PoH) consensus model combined with proof-of-stake (PoS). Miners are replaced by "validators" who stake their SOL tokens as collateral. Rath...