<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ebenezeronuche on Medium]]></title>
        <description><![CDATA[Stories by Ebenezeronuche on Medium]]></description>
        <link>https://medium.com/@ebenezeronuche?source=rss-2fb5c008eb25------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jGF_oEujf4-r4mrvChK5Vw.jpeg</url>
            <title>Stories by Ebenezeronuche on Medium</title>
            <link>https://medium.com/@ebenezeronuche?source=rss-2fb5c008eb25------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 05:59:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ebenezeronuche/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Four Cool Blockchain Concepts Every Beginner must Know]]></title>
            <link>https://medium.com/@ebenezeronuche/four-cool-blockchain-concepts-every-beginner-must-know-54cf702a5db8?source=rss-2fb5c008eb25------2</link>
            <guid isPermaLink="false">https://medium.com/p/54cf702a5db8</guid>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Ebenezeronuche]]></dc:creator>
            <pubDate>Thu, 15 May 2025 00:04:33 GMT</pubDate>
            <atom:updated>2025-05-15T19:17:34.409Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>RPC, Ethereum Client, ByteCode, Contract ABI</em></strong></p><p>Blockchain development is one of the main areas you can go into if you want to become a software engineer. I just started my journey in becoming a blockchain developer and I have been learning many exciting things. If you want to also become a blockchain developer or you just want to learn a thing or two about blockchain then this article is for you.</p><p>In case you are wondering what blockchain development is about. Blockchain development is the process of designing, building, and deploying decentralised applications (d Apps) or systems that operate on a distributed ledger technology, ensuring transparency, security, and immutability of data.</p><p>In order to successfully build such applications there are a few concepts you must be familiar with.</p><p><strong>RPC(Remote Procedure Call</strong>): is a protocol that enables a program (the client) to request a service from another program (the server) on a different computer network, without needing to understand the network’s technical details. In the blockchain context We have RPC nodes and RPC clients.</p><p>An<strong> RPC client</strong> is a software application that interacts with a blockchain network by sending requests to RPC nodes. These nodes act as intermediaries, allowing the client to query blockchain data, submit transactions, and interact with smart contracts without needing to run a full blockchain node themselves while an <strong>RPC Nodes</strong> in Blockchain is a server running blockchain client software that provides an interface for applications to interact with the blockchain network. It listens for RPC requests from clients.</p><p>RPC clients (like decentralised applications — dApps, crypto wallets, and other tools) use RPC nodes to query data, submit transactions and interact with smart contracts.</p><p>If you are like me and you have chosen to build on the Ethereum network then it’s important to be familiar with the concept of an Ethereum Client.</p><p><strong>An Ethereum client</strong> is a software application that implements the Ethereum specification, allowing computers (nodes) to connect to the Ethereum network. These clients enable nodes to verify transactions, execute smart contracts, and maintain a copy of the blockchain. Different clients, developed by various teams in different programming languages, can interoperate as long as they adhere to the Ethereum protocol. Ethereum clients carry out the following major functions, Blockchain Synchronization, Transaction Handling, Smart Contract Interaction, Network Communication.</p><p>The next concept we will be looking at is ByteCode. I am sure you are wondering what that means.</p><p><strong>Bytecode</strong> is a low-level, platform-independent representation of source code that is executed by a virtual machine. Instead of being directly run by the computer’s CPU, bytecode is processed by an interpreter or a just-in-time (JIT) compiler within the virtual machine environment. A virtual machine (VM) is a software environment that emulates a physical computer. It interprets and executes the bytecode instructions. Some VMs also use JIT compilation to translate frequently executed bytecode into native machine code for better performance. Bytecode serves as an intermediate representation between high-level programming languages and machine code.</p><p>Smart contracts written in high-level languages like Solidity are compiled into <strong>EVM bytecode</strong>.</p><p>This bytecode is what gets deployed to the Ethereum blockchain and stored in the contract’s account.</p><p>Now that we are familiar with the concepts above we will need a guide on how to build applications to communicate with smart contracts on the blockchain. That is what the Contract ABI is for.</p><p>The <strong>Contract Application Binary Interface (ABI)</strong> is a crucial concept in the Ethereum ecosystem that defines how to interact with smart contracts. Think of it as a translator and a guide for applications (like decentralised apps or wallets) to communicate with compiled smart contract code on the blockchain. The ABI is a JSON file that describes all the functions, events, and data structures of a smart contract in a human-readable format. It specifies how function calls and data are encoded into bytecode (which the Ethereum Virtual Machine — EVM understands) when interacting with the contract, and how the data returned by the contract is decoded back into a readable format. In essence, the contract ABI acts as a bridge, enabling seamless communication between human-readable code in external applications and the machine-readable bytecode of smart contracts on the Ethereum blockchain.</p><p>Now that you are familiar with these concepts, you have taken a step towards becoming a great blockchain developer. Goodluck on your journey</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54cf702a5db8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why you should go through the docs even when you have youtube.]]></title>
            <link>https://medium.com/@ebenezeronuche/why-you-should-go-through-the-docs-even-when-you-have-youtube-bbe755ae28a2?source=rss-2fb5c008eb25------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbe755ae28a2</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Ebenezeronuche]]></dc:creator>
            <pubDate>Fri, 28 Jun 2024 13:55:57 GMT</pubDate>
            <atom:updated>2024-06-28T13:55:57.117Z</atom:updated>
            <content:encoded><![CDATA[<p>I am a fullstack JavaScript/typescript developer. I use reactjs for frontend and nodeJs (express) for backend development. I have always preferred turning to YouTube tutorials whenever I had to use a new technology or framework. I barely ever studied the documentation because I believed that the YouTube tutors would do that for me and explain it.. this was a bad approach for me. Let me tell you all about it…. but before I continue I just want to mention that I’m currently part of an internships program by HNG, an awesome organisation that’s helping to build and mentor developers. I’m hoping to become a finalist so I can help build others. You can check them out by following these links..<br><a href="https://hng.tech/internship">https://hng.tech/internship<br></a>https://hng.tech/hire<br><a href="https://hng.tech/premium">https://hng.tech/premium</a></p><p>I recently had to build a fullstack application and implement authentication in the API routes using prisma orm/mongodb and also at the client side. I chose nextAuth a nextjs authentication framework. I used Google provider. I installed next-auth version5 which is now called authjs. I went through different YouTube tutorials on how to successfully implement authentication while integrating data from the database into the session data like userId and admin roles but I kept running into errors because the versions in the YouTube tutorials were different from mine. After a few days of trying and failing I decided to go through the nextAuth v5 documentation. I read it from the beginning like a book and followed it. I was able to implement it in a few minutes. I took the following steps…</p><p>step one: i installed next auth</p><pre>npm install next-auth@beta</pre><p>step two i created an auth secret in the terminal and used it in the .env file.</p><pre>npx auth secret<br></pre><pre>.env<br><br>AUTH_SECRET=secret</pre><p>step three i created an auth.ts file at the root of the Nextjs application and added the code below</p><pre>import NextAuth from &quot;next-auth&quot;<br> <br>export const { handlers, signIn, signOut, auth } = NextAuth({<br>  providers: [],<br>})</pre><p>step four i created a folder called […nextauth] in the api folder and added a route.ts file and added the code below</p><p>/app/api/auth/[…nextauth]/route.ts</p><pre>import { handlers } from &quot;@/auth&quot; // Referring to the auth.ts you just created<br>export const { GET, POST } = handlers</pre><p>step 5: I chose an oauth provider. i used google provider. Go to <a href="https://console.cloud.google.com/">https://console.cloud.google.com/</a> to register your application and get a client id and client secret.</p><p>step 7: I used the client id and client secret in the .env file</p><pre>.env<br><br>AUTH_GOOGLE_ID={CLIENT_ID}<br>AUTH_GOOGLE_SECRET={CLIENT_SECRET}</pre><p>step 7: i configured the auth.ts file to use google provider by adding the code below</p><pre><br>import NextAuth from &quot;next-auth&quot;<br>import Google from &quot;next-auth/providers/google&quot;<br> <br>export const { handlers, signIn, signOut, auth } = NextAuth({<br>  providers: [Google],<br>})</pre><p>Step 8: I used the prisma adapter to setup the mongodb database and initialized prisma</p><pre>npm install @prisma/client @auth/prisma-adapter<br>npm install prisma --save-dev<br></pre><p>Step 9: I added prisma to the auth.ts file.</p><pre>import NextAuth from &quot;next-auth&quot;<br>import { PrismaAdapter } from &quot;@auth/prisma-adapter&quot;<br>import { PrismaClient } from &quot;@prisma/client&quot;<br> <br>const prisma = new PrismaClient()<br> <br>export const { handlers, auth, signIn, signOut } = NextAuth({<br>  adapter: PrismaAdapter(prisma),<br>  providers: [],<br>})<br></pre><p>Step 10. I used the data models provided by Authjs in the prisma schema file.</p><pre>datasource db {<br>  provider = &quot;mongodb&quot;<br>  url      = env(&quot;DATABASE_URL&quot;)<br>}<br> <br>generator client {<br>  provider = &quot;prisma-client-js&quot;<br>}<br> <br>model User {<br>  id            String          @id @default(auto()) @map(&quot;_id&quot;) @db.ObjectId<br>  name          String?<br>  email         String?         @unique<br>  emailVerified DateTime?<br>  image         String?<br>  accounts      Account[]<br>  sessions      Session[]<br>  // Optional for WebAuthn support<br>  Authenticator Authenticator[]<br> <br>  createdAt DateTime @default(now())<br>  updatedAt DateTime @updatedAt<br>}<br> <br>model Account {<br>  id                String  @id @default(auto()) @map(&quot;_id&quot;) @db.ObjectId<br>  userId            String  @db.ObjectId<br>  type              String<br>  provider          String<br>  providerAccountId String<br>  refresh_token     String? @db.String<br>  access_token      String? @db.String<br>  expires_at        Int?<br>  token_type        String?<br>  scope             String?<br>  id_token          String? @db.String<br>  session_state     String?<br> <br>  createdAt DateTime @default(now())<br>  updatedAt DateTime @updatedAt<br> <br>  user User @relation(fields: [userId], references: [id], onDelete: Cascade)<br> <br>  @@unique([provider, providerAccountId])<br>}<br> <br>model Session {<br>  id           String   @id @default(auto()) @map(&quot;_id&quot;) @db.ObjectId<br>  sessionToken String   @unique<br>  userId       String   @db.ObjectId<br>  expires      DateTime<br>  user         User     @relation(fields: [userId], references: [id], onDelete: Cascade)<br> <br>  createdAt DateTime @default(now())<br>  updatedAt DateTime @updatedAt<br>}<br> <br>model VerificationToken {<br>  id         String   @id @default(auto()) @map(&quot;_id&quot;) @db.ObjectId<br>  identifier String<br>  token      String<br>  expires    DateTime<br> <br>  @@unique([identifier, token])<br>}<br> <br>// Optional for WebAuthn support<br>model Authenticator {<br>  credentialID         String  @id @map(&quot;_id&quot;)<br>  userId               String  @db.ObjectId<br>  providerAccountId    String<br>  credentialPublicKey  String<br>  counter              Int<br>  credentialDeviceType String<br>  credentialBackedUp   Boolean<br>  transports           String?<br> <br>  user User @relation(fields: [userId], references: [id], onDelete: Cascade)<br> <br>  @@unique([userId, credentialID])<br>}<br></pre><p>Step 11. I extended the session by adding a callback to the Auth.ts file.</p><pre>  providers,<br>  callbacks: {<br>    session({ session, user }) {<br>      session.user.id = user.id<br>      return session<br>    },<br>  }<br>}<br></pre><p>The above steps made it possible for me to view the user id in the session throughout the application. I added the admin user role in the user schema and was able to view throughout my application.</p><p>By following the Authjs docs I was able to set it up in a few minutes. I hope you found this helpful.</p><p>You can read the docs here <a href="https://authjs.dev/getting-started">https://authjs.dev/getting-started</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbe755ae28a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>