<?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 Jeftar Mascarenhas on Medium]]></title>
        <description><![CDATA[Stories by Jeftar Mascarenhas on Medium]]></description>
        <link>https://medium.com/@jeftar.mascarenhas?source=rss-79864ab0a14e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*okelunjBvIJ_32NL</url>
            <title>Stories by Jeftar Mascarenhas on Medium</title>
            <link>https://medium.com/@jeftar.mascarenhas?source=rss-79864ab0a14e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 03:35:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jeftar.mascarenhas/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[Context Strategy: Why Uncontrolled AI is Breaking Software Development]]></title>
            <link>https://medium.com/@jeftar.mascarenhas/context-strategy-why-uncontrolled-ai-is-breaking-software-development-b938def138cf?source=rss-79864ab0a14e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b938def138cf</guid>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[anthropic-claude]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Jeftar Mascarenhas]]></dc:creator>
            <pubDate>Wed, 21 Jan 2026 12:03:06 GMT</pubDate>
            <atom:updated>2026-01-21T12:03:06.380Z</atom:updated>
            <content:encoded><![CDATA[<p>Today, almost everyone uses AI in software development. ChatGPT. Copilot. Cursor. Claude.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ob2y1AbgOWVL2MBU8hXgUA.png" /></figure><p>The problem is no longer <em>adopting</em> AI. That has become the standard.<br>The problem is that most teams adopted AI without a context strategy.</p><p>And this is creating a new kind of technical debt — silent, expensive, and difficult to reverse.</p><p>The New Problem Isn’t Generating Code. It’s Controlling the Flow<br>Generating code has never been easier, but keeping that code alive, understandable, and evolvable… has never been harder.</p><p><strong>Modern projects are full of code that:</strong></p><ul><li>works</li><li>passed tests</li><li>was delivered quickly</li></ul><p><strong>But no one can answer:</strong></p><ul><li><em>why</em> it was done this way</li><li>which decision led down this path</li><li>what <em>cannot</em> be broken</li><li>what was already tried before</li></ul><p>When this context is lost, neither the human nor the AI can help.</p><p>Why Some Tools Started Talking About Control<br>In recent months, something interesting began to happen.</p><p><strong>Tools like Claude started emphasizing:</strong></p><ul><li>control of the flow</li><li>clarity of instructions</li><li>reduction of ambiguities</li><li>organization of reasoning</li></ul><p>This is not a coincidence.</p><p>It’s a clear sign that the market noticed something important:</p><p>AI without context control does not scale.<br>But there’s a trap here.</p><p>Control Isn’t Just About Writing a Good Specification<br>Many teams tried to solve this with spec-driven development.</p><p><strong>The idea sounds good:</strong></p><ul><li>write the spec</li><li>generate the code</li><li>validate against the spec</li></ul><p>It works… at first.</p><p>The problem is that specs age quickly.</p><p><strong>They:</strong></p><ul><li>do not keep up with day-to-day decisions</li><li>do not record deviations</li><li>do not capture learning</li><li>do not survive system evolution</li></ul><p>Over time, the spec becomes:</p><p>“an old photo of something that has already changed.”<br>And the AI remains blind.</p><p>Context Strategy is Different from Spec Strategy<br>This is where a fundamental distinction comes in.</p><p><strong>Spec-driven:</strong></p><ul><li>central document</li><li>static vision</li><li>focus on <em>“what to build”</em></li><li>loses value over time</li></ul><p><strong>Context Strategy:</strong></p><ul><li>living flow</li><li>continuous decisions</li><li>focus on <em>“why”</em> and <em>“how to evolve”</em></li><li>gains value over time</li></ul><p>Context Strategy doesn’t try to freeze the system. It accompanies the system <em>while it changes</em>.</p><p>Where <a href="https://www.context-mesh.org/">Context Mesh</a> Comes In<br>The <a href="https://www.context-mesh.org/">Context Mesh</a> is born precisely from this problem.</p><p><strong>It is not:</strong></p><ul><li>an IDE</li><li>an AI model</li><li>a specific tool</li><li>a trend</li></ul><p><strong>The </strong><a href="https://www.context-mesh.org/"><strong>Context Mesh</strong></a><strong> is an agnostic framework:</strong></p><ul><li>independent of the model (GPT, Claude, Gemini…)</li><li>independent of the IDE (VS Code, Cursor, others)</li><li>independent of the tool</li></ul><p>It acts on the <em>development flow</em>, not on the isolated output.</p><p><strong>While spec-driven tries to preserve a document, the </strong><a href="https://www.context-mesh.org/"><strong>Context Mesh</strong></a><strong> preserves:</strong></p><ul><li>intent</li><li>decisions</li><li>learning</li><li>boundaries</li><li>evolution</li></ul><p>That is: the software’s real context.</p><p>Why This Doesn’t Get Lost Over Time<br>The big difference is simple:</p><p>Context isn’t something you write once. It’s something you govern continuously.<br><strong>The </strong><a href="https://www.context-mesh.org/"><strong>Context Mesh</strong></a><strong> works alongside development:</strong></p><ul><li>when a decision changes</li><li>when a trade-off happens</li><li>when something is learned</li><li>when a rule emerges</li></ul><p>Nothing stays implicit.</p><p><strong>And when context is explicit:</strong></p><ul><li>the AI understands better</li><li>the developer decides better</li><li>the project evolves with less fear</li></ul><p>This Completely Changes How You Use AI<br>When you have a Context Strategy:</p><ul><li>you don’t need to switch models every week</li><li>you don’t need to spend tokens explaining everything from scratch</li><li>you don’t need to “fight” the AI</li></ul><p>The AI starts operating within a system that makes sense.</p><p>And this is what separates:</p><ul><li>teams that just <em>use</em> AI</li><li>teams that <em>master</em> AI</li></ul><p>Context Strategy is About Maturity<br>This isn’t about hype. It’s not about the “one right way.”</p><p>It’s about technical maturity.</p><p>Just like:</p><ul><li>architecture</li><li>testing</li><li>version control</li><li>observability</li></ul><p>Context Strategy has become an essential part of modern development.</p><p>Those who understand this now:</p><ul><li>get ahead</li><li>differentiate themselves</li><li>build a career with greater impact</li></ul><p>What’s Next<br>In the upcoming articles, I’ll delve deeper into:</p><ul><li>why the <a href="https://www.context-mesh.org/">Context Mesh</a> solves problems that specs don’t</li><li>how to govern context in real teams</li><li>and why this is becoming a clear competitive advantage</li></ul><p>💬 If you want to understand how to structure AI without losing control of the project, comment “CONTEXT”. I’ll share the next materials in this series firsthand.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b938def138cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started Context Strategy For AI with Context Mesh: A Quick Tutorial]]></title>
            <link>https://medium.com/@jeftar.mascarenhas/getting-started-context-strategy-for-ai-with-context-mesh-a-quick-tutorial-39fd4e647282?source=rss-79864ab0a14e------2</link>
            <guid isPermaLink="false">https://medium.com/p/39fd4e647282</guid>
            <category><![CDATA[writing-prompt-response]]></category>
            <category><![CDATA[prompt]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Jeftar Mascarenhas]]></dc:creator>
            <pubDate>Mon, 19 Jan 2026 16:17:19 GMT</pubDate>
            <atom:updated>2026-01-19T16:17:19.766Z</atom:updated>
            <content:encoded><![CDATA[<p>Learn how to set up your first Context Mesh project step-by-step. This hands-on tutorial guides you through creating a Personal Expense Tracker and understanding the Intent → Build → Learn cycle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JWvss1oBJn6mn1gm" /></figure><h3>Getting Started with Context Mesh: A Quick Tutorial</h3><p>Have you ever asked AI to generate code, only to realize three months later that you have no idea why certain decisions were made? That’s the problem Context Mesh solves.</p><p><strong>The Problem</strong>: AI-generated code works, but context disappears. Three months later, your own code looks foreign.</p><p><strong>The Solution</strong>: Context Mesh makes context the primary artifact. Instead of code first, documentation later, you create context first, and code becomes its manifestation.</p><p>In this tutorial, we’ll build a <strong>Personal Expense Tracker</strong> together. The key insight: <strong>You don’t need to create any project structure or install anything manually</strong>. Just create the context, and the AI will build everything for you.</p><h3>Understanding the 3-Step Cycle</h3><pre>┌─────────────┐     ┌─────────────┐     ┌─────────────┐<br>│   INTENT    │ ──► │    BUILD    │ ──► │    LEARN    │<br>│  What &amp; Why │     │  AI Creates │     │   Update    │<br>└─────────────┘     └─────────────┘     └─────────────┘</pre><ol><li><strong>Intent</strong>: Document what you’re building, why, and how (technical decisions)</li><li><strong>Build</strong>: AI creates the entire project structure and code following your context</li><li><strong>Learn</strong>: Update context with what worked and what didn’t</li></ol><p><strong>The Magic</strong>: In Intent phase, you document everything in detail — even project structure, package versions, and setup commands. Then in Build phase, the AI reads your context and creates everything from scratch.</p><p>Link to Repository(Leave a star on the repository): <a href="https://github.com/jeftarmascarenhas/context-mesh">https://github.com/jeftarmascarenhas/context-mesh</a></p><p>Link to Website: <a href="https://www.context-mesh.org/">https://www.context-mesh.org/</a></p><h3>Step 1: Create Your Complete Context (Intent Phase)</h3><p>The goal is to create a complete context that tells the AI everything it needs to know. You’ll answer questions from the new-project prompt, and we&#39;ll provide detailed, copy-paste-ready answers that include:</p><ul><li>Project details</li><li>Tech stack with specific versions</li><li>Project structure requirements</li><li>Setup commands</li><li>Feature details (if adding features now)</li></ul><h3>Open Cursor and Start</h3><ol><li><strong>Create an empty folder</strong> (e.g., expense-tracker)</li><li><strong>Open Cursor</strong> (or your AI-powered IDE) in that folder</li><li><strong>Copy the </strong><a href="https://github.com/jeftarmascarenhas/context-mesh/blob/main/prompts/new-project.md"><strong>new-project prompt</strong></a> and paste it in Cursor’s chat</li></ol><p><strong>Important</strong>: The folder is empty. No project structure, no code, no dependencies. We’re starting from zero.</p><h3>Answer the Questions (Complete, Copy &amp; Paste Ready)</h3><p>When the AI asks questions, here are your detailed answers:</p><p><strong>1. Project name?</strong></p><pre>expense-tracker</pre><p><strong>2. Project type?</strong></p><pre>web app</pre><p><strong>3. What problem does it solve?</strong></p><pre>Track personal expenses easily. Users can add expenses, categorize them, and see spending summaries by category and time period.</pre><p><strong>4. Why is this important?</strong></p><pre>Help users understand their spending habits and make better financial decisions. Simple tool for personal finance management.</pre><p><strong>5. Project acceptance criteria?</strong></p><pre>- Users can track personal expenses<br>- Expenses can be categorized<br>- Users can view spending summaries<br>- Simple and easy to use</pre><p><strong>6. Tech stack?</strong></p><pre>Next.js 16 (App Router), React 19, TypeScript 5.x, Tailwind CSS 4.x, SQLite (via better-sqlite3@latest), Zod@latest</pre><p><strong>6a. Why this tech stack?</strong></p><pre>- Next.js 16: Modern React framework with App Router, Server Components, Server Actions, excellent DX, easy deployment<br>- React 19: Latest React with improved performance and features<br>- TypeScript 5.x: Type safety, better IDE support, catches errors early<br>- Tailwind CSS 4.x: Rapid UI development, consistent design system, utility-first approach<br>- SQLite (better-sqlite3@latest): Simple, no database server needed, perfect for personal app, creates local database file automatically, easy to migrate to PostgreSQL later if needed<br>- Zod@latest: Type-safe validation library, works great with TypeScript and Server Actions</pre><pre>IMPORTANT FOR AI: <br>- Project does NOT exist yet. AI must create the entire project structure from scratch.<br>- Use Next.js 16 with App Router (not Pages Router)<br>- Initialize project using: `npx create-next-app@latest . --typescript --tailwind --app --yes`<br>- Install dependencies using: `pnpm add better-sqlite3@latest zod@latest` and `pnpm add -D @types/better-sqlite3@latest`<br>- Always use @latest to ensure you get the most recent stable versions<br>- Do NOT use legacy or deprecated modules<br>- Project structure should follow Next.js 16 App Router conventions:<br>  - app/ directory for routes and layouts<br>  - Server Components by default<br>  - Server Actions for API operations<br>  - TypeScript strict mode enabled</pre><p><strong>6b. What alternatives did you consider?</strong></p><pre>- React + Vite: Next.js provides better structure, Server Components, and Server Actions out of the box<br>- PostgreSQL: SQLite is simpler for MVP, no server setup needed, can migrate later if needed<br>- Prisma: Overkill for simple app, raw SQL with better-sqlite3 is sufficient and more lightweight<br>- REST API: Server Actions are simpler, more type-safe, and integrated with Next.js</pre><p><strong>7. Do you want to add features now?</strong></p><pre>y</pre><p><strong>Important</strong>: We’re answering <strong>YES</strong> here to create the complete context in one go. This includes the project setup AND the first feature.</p><p><strong>7a. Feature name?</strong></p><pre>expense-tracking</pre><p><strong>7b. What does this feature do and why do we need it?</strong></p><pre>Users can add, view, edit, and delete expenses. Each expense has amount, description, category, and date. Users can filter expenses by category and date range, and view spending summaries. This is the core functionality - without it, the app has no purpose.</pre><pre>UI Design Requirements (modern finance app style):<br>- Top section: &quot;Total Balance&quot; label with large balance amount (e.g., &quot;¥ 459.22&quot;) and menu icon (4-dot grid) in top right<br>- Account cards: Gradient purple cards showing account/payment method balances (e.g., PayPal card with logo and balance &quot;¥ 338.34&quot;)<br>- Statistics section: <br>  - &quot;All Statistic&quot; header in bold<br>  - Time filter buttons: Day (selected/purple), Week, Month, Year (unselected/gray)<br>  - Line graph: Light purple line chart showing spending trends<br>    - X-axis: Time intervals (09:00, 12:00, 15:00, 18:00, 21:00, 00:00)<br>    - Interactive data points with tooltips showing amounts (e.g., &quot;¥ 15.23&quot; at 15:00)<br>    - Light gray grid lines for readability<br>- Spending section: &quot;All Spend&quot; header for detailed expense list below<br>- Design style: Clean white background, purple/orange accent colors, rounded corners, modern gradient cards, spacious layout</pre><p><strong>7c. Acceptance criteria for this feature?</strong></p><pre>- User can add a new expense with amount, description, category, and date<br>- User can view a list of all expenses<br>- User can edit an existing expense<br>- User can delete an expense<br>- User can filter expenses by category<br>- User can filter expenses by date range<br>- User can see total spending<br>- User can see spending by category</pre><p><strong>7d. Technical approach for this feature?</strong></p><pre>- Database: SQLite with better-sqlite3@latest for server-side operations<br>- Schema: expenses table with id (INTEGER PRIMARY KEY AUTOINCREMENT), amount (REAL), description (TEXT), category (TEXT), date (TEXT ISO format), created_at (TEXT ISO format)<br>- Database file: Create at project root as `expenses.db`<br>- Database initialization: Create lib/db.ts with database connection and schema initialization<br>- API: Next.js Server Actions (not API routes) for CRUD operations<br>  - Create: app/actions/expenses.ts with addExpense, updateExpense, deleteExpense, getExpenses actions<br>- UI: Server Components with forms for adding/editing, table/list for viewing<br>  - Main page: app/page.tsx (expense list with filters)<br>  - Add/Edit form: app/expenses/[id]/page.tsx for edit, app/expenses/new/page.tsx for add<br>- Validation: Zod schemas in lib/validations/expense.ts<br>- Categories: Predefined list (Food, Transport, Entertainment, Shopping, Bills, Other) stored as constants<br>- Components structure:<br>  - app/components/ExpenseForm.tsx (form component)<br>  - app/components/ExpenseList.tsx (list component)<br>  - app/components/ExpenseFilters.tsx (filter component)<br>  - app/components/ExpenseStats.tsx (statistics component)</pre><p><strong>7e. Why this approach?</strong></p><pre>- SQLite: Simple, no setup, perfect for personal app, creates local file automatically, can migrate to PostgreSQL later<br>- Server Actions: Modern Next.js 16 pattern, type-safe, simple API, no separate API routes needed<br>- Server Components: Better performance, less client-side JavaScript, SEO-friendly<br>- Zod: Type-safe validation, works great with TypeScript and Server Actions, catches errors early<br>- Predefined categories: Simple UX, can add custom categories later if needed<br>- Component structure: Organized, reusable, follows Next.js 16 App Router patterns</pre><p><strong>7f. What alternatives did you consider?</strong></p><pre>- PostgreSQL: Too complex for MVP, SQLite is sufficient and can migrate later<br>- Client-side state only: Need persistence, database is necessary<br>- Custom categories only: Predefined is simpler for MVP, can enhance later<br>- REST API routes: Server Actions are simpler, more type-safe, and integrated with Next.js 16<br>- Pages Router: App Router is the future of Next.js, better performance, Server Components</pre><p><strong>8. Do you have any initial patterns or conventions?</strong></p><pre>n</pre><p><strong>What happens</strong>: The AI creates your complete context/ folder structure with:</p><ul><li>context/.context-mesh-framework.md - Framework rules and patterns</li><li>context/intent/project-intent.md - Your project vision</li><li>context/intent/feature-expense-tracking.md - Feature intent with acceptance criteria</li><li>context/decisions/001-tech-stack.md - Tech stack decision with rationale</li><li>context/decisions/002-expense-tracking.md - Feature technical approach</li><li>context/evolution/changelog.md - Initial changelog</li><li>AGENTS.md - AI agent router with setup commands</li></ul><p><strong>Key Point</strong>: The context files will include detailed information about:</p><ul><li>Project initialization commands</li><li>Package versions</li><li>Project structure requirements</li><li>Setup instructions</li></ul><p>This tells the AI everything it needs to create the project from scratch.</p><h3>Step 2: Build Everything (Build Phase)</h3><p>Now that you have complete context, the AI can build everything for you.</p><h3>Execute the Build</h3><ol><li><strong>In Cursor’s chat, type:</strong></li></ol><pre>Load @context files and build the entire project from scratch following all documented decisions and intents.</pre><ol><li><strong>Read all context files</strong>:</li></ol><ul><li>Project intent: “Personal expense tracker”</li><li>Tech stack decision: “Next.js 16, TypeScript, SQLite, etc.”</li><li>Feature intent: “Expense tracking with CRUD operations”</li><li>Feature decision: “Server Actions, SQLite schema, component structure”</li></ul><p>2. <strong>Create project structure</strong>:</p><ul><li>Initialize Next.js 16 project: npx create-next-app@latest . --typescript --tailwind --app --yes</li><li>Install dependencies: pnpm add better-sqlite3@latest zod@latest and pnpm add -D @types/better-sqlite3@latest</li><li>Create folder structure: app/, lib/, app/components/, etc.</li></ul><p><strong>3. Create database</strong>:</p><ul><li>Create lib/db.ts with SQLite connection</li><li>Initialize expenses.db with schema</li><li>Create expenses table with all fields</li></ul><p><strong>4. Create Server Actions</strong>:</p><ul><li>app/actions/expenses.ts with all CRUD operations</li><li>Zod validation schemas in lib/validations/expense.ts</li></ul><p><strong>5. Create UI components</strong>:</p><ul><li>app/page.tsx - Main expense list page</li><li>app/expenses/new/page.tsx - Add expense form</li><li>app/expenses/[id]/page.tsx - Edit expense form</li><li>All component files as specified</li></ul><p><strong>6. Follow all documented decisions</strong>:</p><ul><li>Use Server Actions (not API routes)</li><li>Use Server Components</li><li>Use Zod for validation</li><li>Follow Next.js 16 App Router patterns</li></ul><p><strong>Your role</strong>: Review the plan, approve, and test the result. The AI does all the work.</p><h3>Step 3: Learn and Update Context (Learn Phase)</h3><p>After the feature is built and tested, update your context with what worked and what didn’t.</p><h3>Update the Context</h3><p>Use the <a href="https://github.com/jeftarmascarenhas/context-mesh/blob/main/prompts/learn-update.md">learn-update prompt</a>.</p><p><strong>How it works:</strong> The prompt first analyzes your code and context files automatically to identify what was implemented, then asks only for your subjective insights (what worked well, surprises, lessons learned).</p><ol><li><strong>Feature Intent</strong> (feature-expense-tracking.md):</li></ol><ul><li>Mark status as “Completed”</li><li>Add outcomes section</li></ul><p><strong>2. Decision Files</strong> (002-expense-tracking.md):</p><ul><li>Add “Outcomes” section with:</li><li>✅ What worked</li><li>⚠️ What needed attention</li><li>💡 Future considerations</li></ul><p><strong>3. Changelog</strong> (changelog.md):</p><ul><li>Record what was implemented</li></ul><p><strong>This is Step 3: Learn</strong> — Context stays synchronized with code. Future cycles benefit from these learnings.</p><h3>The Complete Flow</h3><p>Here’s what you just did:</p><p><strong>1. Intent</strong>: Created complete context with:</p><ul><li>Project vision</li><li>Tech stack with versions</li><li>Project structure requirements</li><li>Feature details</li><li>Technical decisions</li></ul><p><strong>2. Build</strong>: AI created everything:</p><ul><li>Project structure</li><li>Dependencies</li><li>Database</li><li>All code</li></ul><p><strong>3. Learn</strong>: Updated context with outcomes</p><p><strong>The Key Insight</strong>: You didn’t need to:</p><ul><li>❌ Create project structure manually</li><li>❌ Install dependencies manually</li><li>❌ Write any code manually</li></ul><p>You just created context, and the AI did everything else.</p><h3>Adding More Features</h3><p>To add more features, use the <a href="https://github.com/jeftarmascarenhas/context-mesh/blob/main/prompts/add-feature.md">add-feature prompt</a>:</p><ol><li><strong>Paste the prompt</strong></li><li><strong>Answer the questions</strong> (similar to what we did above)</li><li><strong>AI creates</strong> feature intent + decision files</li><li><strong>Build</strong>: Load @context files and implement the new feature</li><li><strong>Learn</strong>: Update context with outcomes</li></ol><p>Each feature follows the same Intent → Build → Learn cycle.</p><h3>Why This Approach Works</h3><p><strong>Traditional Development:</strong></p><pre>Create project → Write code → (maybe) Document → Context Lost</pre><p><strong>Context Mesh:</strong></p><pre>Create context → AI builds everything → Update context → Better next cycle</pre><p><strong>The Advantages:</strong></p><ul><li>✅ <strong>No manual setup</strong>: AI creates project structure</li><li>✅ <strong>Complete context</strong>: Everything documented before building</li><li>✅ <strong>Consistent decisions</strong>: AI follows documented choices</li><li>✅ <strong>Learning loop</strong>: Each cycle improves the next</li></ul><p><strong>Three months later:</strong></p><ul><li>You know WHY you chose SQLite (documented in decision)</li><li>You know WHAT worked (documented in outcomes)</li><li>You know WHAT to avoid (documented in learnings)</li><li>Your context is still current (updated in Learn phase)</li></ul><h3>What You’ve Learned</h3><p>By following this tutorial, you’ve:</p><ol><li>✅ Created complete context without writing any code</li><li>✅ Let AI build the entire project from scratch</li><li>✅ Updated context with learnings</li><li>✅ Understood the Intent → Build → Learn cycle</li></ol><p>You now understand:</p><ul><li><strong>Context-first development</strong>: Document everything before building</li><li><strong>AI builds everything</strong>: No manual setup needed</li><li><strong>Complete answers</strong>: Include versions, structure, commands in context</li><li><strong>The feedback loop</strong>: Learnings improve future cycles</li></ul><h3>Next Steps</h3><ul><li><strong>Continue building</strong>: Add more features following the same cycle</li><li><strong>Create patterns</strong>: Document patterns you discover</li><li><strong>Explore the framework</strong>: Read the <a href="https://github.com/jeftarmascarenhas/context-mesh/blob/main/FRAMEWORK.md">complete framework documentation</a></li><li><strong>See examples</strong>: Check out <a href="https://github.com/jeftarmascarenhas/context-mesh/tree/main/examples">working examples</a></li></ul><p><strong>Remember</strong>: Context is primary. Code is its manifestation. Create complete context, and let AI build everything for you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39fd4e647282" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Context Strategy: Por Que IA Sem Controle Está Quebrando o Desenvolvimento de Software]]></title>
            <link>https://medium.com/@jeftar.mascarenhas/context-strategy-por-que-ia-sem-controle-est%C3%A1-quebrando-o-desenvolvimento-de-software-8b18ea37a5b2?source=rss-79864ab0a14e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b18ea37a5b2</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[context-engineering]]></category>
            <category><![CDATA[good-vibes-club]]></category>
            <category><![CDATA[context-mesh]]></category>
            <dc:creator><![CDATA[Jeftar Mascarenhas]]></dc:creator>
            <pubDate>Mon, 19 Jan 2026 12:32:32 GMT</pubDate>
            <atom:updated>2026-01-19T12:32:32.532Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R-8LEJedGnG7zkd6nmfyeg.png" /><figcaption>Context Strategy: Por Que IA Sem Controle Está Quebrando o Desenvolvimento de Software</figcaption></figure><p>Hoje, praticamente todo mundo já usa IA no desenvolvimento de software. ChatGPT. Copilot. Cursor. Claude.</p><ul><li>O problema não é mais adotar IA. Isso já virou padrão.</li><li>O problema é que a maioria dos times adotou IA sem uma estratégia de contexto.</li></ul><p>E isso está criando um novo tipo de dívida técnica — silenciosa, cara e difícil de reverter.</p><h3>O novo problema não é gerar código. É controlar o fluxo</h3><p>Gerar código nunca foi tão fácil, mas manter esse código vivo, compreensível e evolutivo… Nunca foi tão difícil.</p><p>Projetos modernos estão cheios de código que:</p><ul><li>funciona</li><li>passou em testes</li><li>foi entregue rápido</li></ul><p>Mas ninguém sabe responder:</p><ul><li>por que isso foi feito assim</li><li>qual decisão levou a esse caminho</li><li>o que não pode ser quebrado</li><li>o que já foi tentado antes</li></ul><p>Quando esse contexto se perde, nem o humano nem a IA conseguem ajudar.</p><h3>Por isso algumas ferramentas começaram a falar de controle</h3><p>Nos últimos meses, algo interessante começou a acontecer.</p><p>Ferramentas como o Claude passaram a enfatizar:</p><ul><li>controle do fluxo</li><li>clareza de instruções</li><li>redução de ambiguidades</li><li>organização do raciocínio</li></ul><p>Isso não é coincidência.</p><p>É um sinal claro de que o mercado percebeu algo importante:</p><blockquote><em>IA sem controle de contexto não escala.</em></blockquote><p>Mas aqui existe uma armadilha.</p><h3>Controle não é só escrever uma boa especificação</h3><p>Muitos times tentaram resolver isso com spec-driven development.</p><p>A ideia parece boa:</p><ul><li>escreve a spec</li><li>gera o código</li><li>valida contra a spec</li></ul><p>Funciona… no início.</p><p>O problema é que specs envelhecem rápido.</p><p>Elas:</p><ul><li>não acompanham decisões do dia a dia</li><li>não registram desvios</li><li>não capturam aprendizado</li><li>não sobrevivem à evolução do sistema</li></ul><p>Com o tempo, a spec vira:</p><blockquote><em>“uma foto antiga de algo que já mudou”.</em></blockquote><p>E a IA continua cega.</p><h3>Context Strategy é diferente de Spec Strategy</h3><p>Aqui entra uma distinção fundamental.</p><h3>Spec-driven:</h3><ul><li>documento central</li><li>visão estática</li><li>foco no “o que construir”</li><li>perde valor com o tempo</li></ul><h3>Context Strategy:</h3><ul><li>fluxo vivo</li><li>decisões contínuas</li><li>foco no “por que” e no “como evoluir”</li><li>ganha valor com o tempo</li></ul><p>Context Strategy não tenta congelar o sistema. Ela acompanha o sistema enquanto ele muda.</p><h3>Onde entra o Context Mesh</h3><p>O <a href="https://context-mesh.org/">Context Mesh</a> nasce exatamente desse problema.</p><p>Ele não é:</p><ul><li>uma IDE</li><li>um modelo de IA</li><li>uma ferramenta específica</li><li>uma moda</li></ul><p>O <a href="https://context-mesh.org/">Context Mesh</a> é um framework agnóstico:</p><ul><li>independe de modelo (GPT, Claude, Gemini…)</li><li>independe de IDE (VS Code, Cursor, outras)</li><li>independe de ferramenta</li></ul><p>Ele atua no fluxo de desenvolvimento, não no output isolado.</p><p>Enquanto o spec-driven tenta preservar um documento, o <a href="https://context-mesh.org/">Context Mesh</a> preserva:</p><ul><li>intenção</li><li>decisões</li><li>aprendizado</li><li>limites</li><li>evolução</li></ul><p>Ou seja: o contexto real do software.</p><h3>Por que isso não se perde com o tempo</h3><p>A grande diferença é simples:</p><blockquote><em>Contexto não é algo que você escreve uma vez. É algo que você governa continuamente.</em></blockquote><p>O <a href="https://context-mesh.org/">Context Mesh</a> trabalha junto com o desenvolvimento:</p><ul><li>quando uma decisão muda</li><li>quando um trade-off acontece</li><li>quando algo é aprendido</li><li>quando uma regra surge</li></ul><p>Nada fica implícito.</p><p>E quando o contexto é explícito:</p><ul><li>a IA entende melhor</li><li>o dev decide melhor</li><li>o projeto evolui com menos medo</li></ul><h3>Isso muda completamente a forma de usar IA</h3><p>Quando você tem Context Strategy:</p><ul><li>não precisa trocar de modelo toda semana</li><li>não precisa gastar tokens explicando tudo de novo</li><li>não precisa “brigar” com a IA</li></ul><p>A IA passa a operar dentro de um sistema que faz sentido.</p><p>E isso é o que separa:</p><ul><li>times que só usam IA</li><li>times que dominam IA</li></ul><h3>Context Strategy é sobre maturidade</h3><p>Isso não é sobre hype. Não é sobre “jeito certo”.</p><p>É sobre maturidade técnica.</p><p>Assim como:</p><ul><li>arquitetura</li><li>testes</li><li>versionamento</li><li>observabilidade</li></ul><p>Context Strategy virou parte essencial do desenvolvimento moderno.</p><p>Quem entende isso agora:</p><ul><li>se antecipa</li><li>se diferencia</li><li>constrói carreira com mais impacto</li></ul><h3>O que vem a seguir</h3><p>Nos próximos artigos, vou aprofundar:</p><ul><li>por que o <a href="https://context-mesh.org/">Context Mesh</a> resolve problemas que specs não resolvem</li><li>como governar contexto em times reais</li><li>e por que isso está se tornando uma vantagem competitiva clara</li></ul><p>💬 Se você quer entender como estruturar IA sem perder controle do projeto, comente “CONTEXT”. Vou compartilhar em primeira mão os próximos materiais dessa série.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b18ea37a5b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Invisible Problem of Using AI in Development (And Why It Can Stall Your Career)]]></title>
            <link>https://medium.com/@jeftar.mascarenhas/the-invisible-problem-of-using-ai-in-development-and-why-it-can-stall-your-career-2c244546ad20?source=rss-79864ab0a14e------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c244546ad20</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai-tools]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Jeftar Mascarenhas]]></dc:creator>
            <pubDate>Mon, 08 Dec 2025 17:16:10 GMT</pubDate>
            <atom:updated>2025-12-08T17:16:10.975Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="The Invisible Problem of Using AI in Development (And Why It Can Stall Your Career)" src="https://cdn-images-1.medium.com/max/1024/1*Mqb1R8r6K4obl_lV9j4ZFQ.png" /></figure><p>In recent years, AI has become part of developers’ daily lives. <br>We generate code faster, create complex functions in seconds, and solve tasks that used to take hours.</p><p>But there’s a problem that almost no one talks about. It’s the <strong>silent chaos</strong> that appears when we use AI without a clear method. And this is already affecting many people’s careers, including in Brazil.</p><h4>The False Sense of Productivity</h4><p>At first, everything seems fine:<br>- You ask the AI to create a function,<br>- It delivers quickly,<br>- You test it, it works,<br>- And you move on.</p><p>But after a few weeks or months, reality hits:<br>- No one understands the code that was generated.<br>- The decisions that led to that solution are lost.<br>- Every fix takes much longer than it should.<br>- Even the AI itself can’t fix it because it has no context.</p><h4>Have you experienced this?</h4><p>Many developers around the world have already realized that AI’s initial speed is an illusion when there is no process.</p><p><strong>Why Does This Happen?</strong><br>Because most people are using AI in an improvised way. And when we use AI without a method, we create:<br>- Quick technical debt,<br>- Constant rework,<br>- Loss of understanding of the system,<br>- And an endless cycle of “generate code → fix → generate again.”</p><h4>This is not productivity. This is luck mixed with risk.</h4><p>The Direct Impact on Your Career<br>Now comes the most serious part: companies worldwide are already demanding that developers know how to apply AI strategically, not just use an assistant to generate code.</p><h4>This is called AI First.</h4><p>This change has already started in the USA and Europe — and is arriving in Brazil much faster than you think.</p><p><strong>A professional who masters AI First:</strong><br>- Produces with more clarity,<br>- Delivers with less rework,<br>- Generates sustainable code,<br>- And adds much more value to the team.</p><p>And value in the market means better salaries and more opportunities.</p><p>It’s not about replacing the developer. It’s about preparing the dev for the level the market is already asking for.</p><p>The Good News: There’s Still Time to Get Ahead<br>In Brazil, few people truly understand AI First. Many are still stuck in the phase of “using AI to speed up tasks,” without realizing that it’s not enough.</p><p>Those who understand <em>how</em> to use AI stand out. And those who stand out, grow.</p><p><strong>Companies are already learning that:</strong></p><blockquote>“Having AI in your tech stack is not enough. You need to have AI in your <em>process</em>.”</blockquote><p>And those who master this automatically become more valuable.</p><p><strong>That’s Why I’m Writing This Series of Articles<br>I want to help you:</strong><br>- Understand the most common mistakes,<br>- Learn how to work with AI in a sustainable way,<br>- Prepare for the future of engineering,<br>- And become someone who delivers real results using AI — not just fast code.</p><p>In the coming weeks, I’ll show you step by step how to apply AI First in a simple and practical way. And yes, this can transform your career.</p><h4>Want to Receive the AI First Method Firsthand?</h4><p>Comment “AI FIRST” and I’ll send you the complete introduction before the official launch.</p><p>Let’s build a movement in Brazil together. The market is changing. Those who anticipate, lead!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c244546ad20" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How do upgradeable Smart Contracts Work?]]></title>
            <link>https://medium.com/@jeftar.mascarenhas/how-do-upgradeable-smart-contracts-work-9656d2187242?source=rss-79864ab0a14e------2</link>
            <guid isPermaLink="false">https://medium.com/p/9656d2187242</guid>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[blockchain-development]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Jeftar Mascarenhas]]></dc:creator>
            <pubDate>Sat, 02 Nov 2024 14:40:32 GMT</pubDate>
            <atom:updated>2024-11-02T14:40:32.785Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ILB-d58fx8EXHYGsUD0uDA.png" /></figure><p>Imagine you’ve deployed an API and later find the need to add new functionality. This is straightforward because an API is mutable; you can make changes anytime. However, smart contracts on the blockchain are inherently immutable.</p><p>Once deployed, you can’t directly change them — a significant limitation when new requirements arise. But don’t worry! Smart contracts can indeed be designed to be upgradeable, and I’m here to show you how to make that happen.</p><h3>Understanding Immutability and the Need for Upgrades</h3><p>By design, smart contracts are immutable. This is essential for trust and security, but it can also be a hurdle. Traditional software often relies on patching and upgrades to improve and fix issues over time, allowing for an interactive development approach. With smart contracts, immutability can seem restrictive, yet there are methods to create contracts that retain security while still being upgradable.</p><p>If you want to build a smart contract-based system that allows for this adaptability, you’re in luck! There are upgradeable contrImagine you’ve deployed an API and later find the need to add new functionality. This is straightforward because an API is mutable; you can make changes anytime. However, smart contracts on the blockchain are inherently immutable.</p><p>Once deployed, you can’t directly change them — a significant limitation when new requirements arise. But don’t worry! Smart contracts can indeed be designed to be upgradeable, and I’m here to show you how to make that happen.</p><h3>Understanding Immutability and the Need for Upgrades</h3><p>By design, smart contracts are immutable. This is essential for trust and security, but it can also be a hurdle. Traditional software often relies on patching and upgrades to improve and fix issues over time, allowing for an interactive development approach. With smart contracts, immutability can seem restrictive, yet there are methods to create contracts that retain security while still being upgradable.</p><p>If you want to build a smart contract-based system that allows for this adaptability, you’re in luck! There are upgradeable contract patterns that can enable upgrades without compromising blockchain integrity.</p><h3>How do upgradeable smart contracts work?</h3><p>Upgradeable smart contracts are a pattern composed of THREE contracts:</p><p>1. Proxy contract: The smart contract the user interacts with directly.</p><ul><li>This contracts holds the contract state i.e the important data is held here!.</li><li>This is an EIP1967 standard proxy contract.</li><li>This proxy contract is in charge of forwarding transactions to the implementation contract, the one containing the pure logic.</li></ul><p>2. Implementation contract: The smart contract that provides the skeleton logic and data.</p><ul><li>This is where you instantiate your variables. Your Proxy contract, via delegatecalls into this one, will give them value!</li></ul><p>3. ProxyAdmin contract: The contract links Proxy and Implementation.</p><ul><li>This contract holds authority over Proxy to upgrade the Proxy contract and thus link that proxy to a new implementation contract.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KaxKFwryfH-s9QXV" /></figure><p>The above diagram show what is called the transparent proxy pattern. This patter use call, delegatecall and the three-contract design in order to achieve a super cool infrastructure.</p><ol><li>The user performs a call into the Proxy contract</li><li>That call hits the fallback function of the Proxy contract which is directly rigged to delegatecall into the Implementation contract address.</li><li>In performing a delegatecall, the context of the Proxy contract forwarded. This means that the storage of 0x9283..7613 will be directly effected by the logic of 0x1682.3262 (that whole point of delegatecall)</li><li>The logic from Implementation is performed on the state of Proxy and if the logic doesn’t revert, the state is returned to the Proxy which them returns a receipt to the original user.</li><li>Transaction over.</li></ol><p>In this setup, the Proxy holds the state, the Implementation contains the logic, and the ProxyAdmin manages upgrades. This way, you can ensure flexibility and adaptability in your smart contracts while maintaining security.</p><p>This article provides a brief overview of how upgradeable smart contracts work and how they enable a more interactive and secure approach to smart contract development. If you’re developing blockchain applications, understanding upgradeable contracts is a vital skill.</p><p>Follow me on the <a href="https://www.linkedin.com/in/jeftarmascarenhas/">Linkedin</a> to stay update with more insights and tutorials!</p><p>This article is based in my study in the <a href="https://university.alchemy.com/">Alchemy University</a>.act patterns that can enable upgrades without compromising blockchain integrity.</p><h3>How do upgradeable smart contracts work?</h3><p>Upgradeable smart contracts are a pattern composed of THREE contracts:</p><p>1. Proxy contract: The smart contract the user interacts with directly.</p><ul><li>This contracts holds the contract state i.e the important data is held here!.</li><li>This is an EIP1967 standard proxy contract.</li><li>This proxy contract is in charge of forwarding transactions to the implementation contract, the one containing the pure logic.</li></ul><p>2. Implementation contract: The smart contract that provides the skeleton logic and data.</p><ul><li>This is where you instantiate your variables. Your Proxy contract, via delegatecalls into this one, will give them value!</li></ul><p>3. ProxyAdmin contract: The contract links Proxy and Implementation.</p><ul><li>This contract holds authority over Proxy to upgrade the Proxy contract and thus link that proxy to a new implementation contract.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vXh9b-jz53ogIFLG" /></figure><p>The above diagram show what is called the transparent proxy pattern. This patter use call, delegatecall and the three-contract design in order to achieve a super cool infrastructure.</p><ol><li>The user performs a call into the Proxy contract</li><li>That call hits the fallback function of the Proxy contract which is directly rigged to delegatecall into the Implementation contract address.</li><li>In performing a delegatecall, the context of the Proxy contract forwarded. This means that the storage of 0x9283..7613 will be directly effected by the logic of 0x1682.3262 (that whole point of delegatecall)</li><li>The logic from Implementation is performed on the state of Proxy and if the logic doesn’t revert, the state is returned to the Proxy which them returns a receipt to the original user.</li><li>Transaction over.</li></ol><p>In this setup, the Proxy holds the state, the Implementation contains the logic, and the ProxyAdmin manages upgrades. This way, you can ensure flexibility and adaptability in your smart contracts while maintaining security.</p><p>This article provides a brief overview of how upgradeable smart contracts work and how they enable a more interactive and secure approach to smart contract development. If you’re developing blockchain applications, understanding upgradeable contracts is a vital skill.</p><p>Follow me on the <a href="https://www.linkedin.com/in/jeftarmascarenhas/">Linkedin</a> to stay update with more insights and tutorials!</p><p>This article is based in my study in the <a href="https://university.alchemy.com/">Alchemy University</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9656d2187242" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Como identificar perfis falsos e scammers]]></title>
            <link>https://medium.com/@jeftar.mascarenhas/como-identificar-perfis-falsos-e-scammers-404a41d44ae3?source=rss-79864ab0a14e------2</link>
            <guid isPermaLink="false">https://medium.com/p/404a41d44ae3</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[scammer]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[jobs]]></category>
            <dc:creator><![CDATA[Jeftar Mascarenhas]]></dc:creator>
            <pubDate>Sat, 28 Sep 2024 16:48:36 GMT</pubDate>
            <atom:updated>2024-09-28T16:48:36.801Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rFlJRmzPVPdk4mnDFF3r5w.png" /></figure><h3>Atenção ao aceitar conexões no LinkedIn: como identificar perfis falsos e scammers</h3><p>Com o crescimento da indústria de blockchain e tecnologia, plataformas profissionais como o LinkedIn estão se tornando alvos frequentes de scammers e golpistas.</p><p>Eles criam perfis falsos para se conectar com profissionais da área e aplicar golpes, geralmente relacionados a ofertas de trabalho “incríveis” e “urgentes”. Neste artigo, vamos explorar algumas formas de identificar esses perfis falsos, entender os riscos e aprender como se proteger.</p><h3>Por que esses golpes estão aumentando?</h3><p>A popularidade de áreas como blockchain e criptomoedas atrai muitos profissionais, criando um ambiente perfeito para golpistas. Com cada vez mais pessoas buscando oportunidades na indústria, scammers veem uma chance de explorar a inexperiência ou a pressa de quem está em busca de um emprego. Eles se passam por recrutadores, consultores e até mesmo profissionais do setor para conseguir informações pessoais, roubar dados ou aplicar golpes financeiros.</p><h3>Como identificar um scammer no LinkedIn?</h3><p>Para se proteger, é fundamental saber identificar os sinais comuns de um perfil falso ou scammer. Aqui estão alguns sinais de alerta:</p><ol><li>Ofertas boas demais para ser verdade: Eles costumam enviar mensagens oferecendo empregos com salários muito acima da média e com urgência para você aceitar. Normalmente, a proposta é apresentada como uma “oportunidade única” que você não pode deixar passar. Sempre desconfie de ofertas que parecem ser boas demais para ser verdade — na maioria das vezes, elas são.</li><li>Falta de transparência: Golpistas evitam ao máximo contatos por vídeo. Em vez disso, preferem conversas apenas por texto ou áudio. Isso os ajuda a se esconder e evitar revelar sua verdadeira identidade. Se você insistir em uma entrevista por vídeo e eles se recusarem ou criarem desculpas, esse é um grande sinal de alerta.</li><li>Insistência: Eles são extremamente insistentes, pressionando você a aceitar a proposta rapidamente, sem dar tempo para pensar ou investigar mais a oferta. Scammers sabem que, ao criar uma sensação de urgência, podem levar as pessoas a tomar decisões impulsivas.</li><li>Vagas variadas: As ofertas podem ser tanto para trabalhos em tempo integral quanto parcial. A flexibilidade é uma tentativa de atrair o maior número de pessoas possível. Fique atento à falta de detalhes sobre o trabalho, responsabilidades vagas ou falta de informações sobre a empresa.</li><li>Perfil criado recentemente: Um sinal clássico de perfil falso é a data de criação recente. Verifique essa informação no perfil — perfis criados há pouco tempo geralmente são um indício de algo suspeito. Na imagem que compartilho, por exemplo, você pode ver que o perfil foi criado recentemente.</li><li>Conexões suspeitas: Mesmo que o perfil esteja conectado com pessoas reais que você conhece, não se deixe enganar. Scammers sabem se conectar com várias pessoas para parecerem legítimos. Sempre investigue o histórico de atividades e interações do perfil.</li><li>Cuidado com testes: Alguns golpistas enviam testes simples para que você rode na sua máquina. Esses testes podem conter scripts maliciosos que comprometem seu computador. Nunca execute códigos de fontes desconhecidas!</li></ol><h3>Os riscos por trás desses golpes</h3><p>Se você cair em um desses golpes, as consequências podem ser sérias. Aqui estão alguns dos riscos comuns:</p><ul><li>Roubo de informações pessoais: Golpistas podem usar as informações do seu perfil para roubo de identidade ou para engenharia social em outras plataformas.</li><li>Malware e scripts maliciosos: Ao rodar testes ou clicar em links enviados pelos golpistas, você pode estar instalando malwares em seu dispositivo, dando a eles acesso aos seus dados.</li><li>Perda financeira: Alguns scams incluem solicitações de depósitos ou taxas sob o pretexto de “processamento de candidatura” ou “registro”. Nunca pague para participar de processos seletivos legítimos.</li><li>Danos à reputação: Ser associado a perfis falsos ou scams pode prejudicar sua reputação profissional.</li></ul><h3>Como agir se você suspeitar de um perfil?</h3><p>Aqui estão algumas ações práticas que você pode tomar caso desconfie de um perfil ou mensagem:</p><ul><li>Pesquise: Procure informações sobre a empresa e o recrutador. Verifique se há registros da empresa em sites oficiais, redes sociais e em outros perfis do LinkedIn. Isso pode ajudar a confirmar a legitimidade.</li><li>Converse com contatos: Se o perfil estiver conectado a pessoas que você conhece, pergunte a essas conexões sobre a pessoa em questão. Elas podem fornecer insights valiosos.</li><li>Não clique em links suspeitos: Links enviados por mensagens de perfis suspeitos podem levar a sites maliciosos. Não clique e, se for possível, reporte a mensagem.</li><li>Denuncie e bloqueie: Use as ferramentas do LinkedIn para denunciar perfis suspeitos. Isso ajuda a plataforma a identificar e remover golpistas.</li><li>Cuidado com informações pessoais: Evite compartilhar informações pessoais ou sensíveis nas mensagens do LinkedIn.</li></ul><h3>Recursos adicionais</h3><p>Aqui estão algumas referências e recursos úteis para aprender mais sobre golpes no LinkedIn e como se proteger:</p><ul><li><a href="https://www.linkedin.com/help/linkedin/answer/62934/reporting-abuse-and-offensive-content?lang=en">Página de segurança do LinkedIn</a>: Como denunciar abusos e conteúdo ofensivo.</li><li><a href="https://www.linkedin.com/pulse/5-dicas-para-proteger-sua-privacidade-online-s6j5f/">Como proteger sua privacidade no LinkedIn:</a> Explore dicas sobre como ajustar suas configurações de privacidade no LinkedIn.</li><li>Pesquise sobre a empresa: Use sites como Glassdoor ou o próprio site oficial da empresa para verificar se ela existe e se está realmente recrutando.</li></ul><p>Perfis falsos e golpes no LinkedIn são um problema crescente. Ao aprender a identificar os sinais de alerta e agir com cautela, você pode evitar cair nessas armadilhas.</p><p>Sempre desconfie de ofertas que parecem boas demais para ser verdade, verifique as informações do perfil e compartilhe essas dicas com suas conexões para ajudar a criar um ambiente mais seguro na plataforma.</p><p>Compartilhe este artigo para ajudar outras pessoas a se protegerem também!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=404a41d44ae3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chainlink Tutorial — 01: Introdução ao Chainlink e Oracles (Data Feed)]]></title>
            <link>https://medium.com/@jeftar.mascarenhas/chainlink-tutorial-01-introdu%C3%A7%C3%A3o-ao-chainlink-e-oracles-data-feed-912c6c2d71bd?source=rss-79864ab0a14e------2</link>
            <guid isPermaLink="false">https://medium.com/p/912c6c2d71bd</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[chain-link]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Jeftar Mascarenhas]]></dc:creator>
            <pubDate>Tue, 24 Sep 2024 15:28:23 GMT</pubDate>
            <atom:updated>2024-09-24T15:28:23.455Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T2nA2R-O_YlInudwarmHiA.png" /></figure><h3>Chainlink Tutorial — 01: Introdução ao Chainlink e Oracles (Data Feed)</h3><p>Este é o primeiro de 6 artigos sobre Chainlink. Você entenderá o que é a Chainlink e os principais serviços que a plataforma de verificação Web3 oferece.</p><p>Neste artigo, você vai aprender o que é a Chainlink e como funcionam os Oracles através de um exemplo prático utilizando o Data Feed da Chainlink.</p><p>Links para os próximos artigos da série:</p><ul><li><strong>Introdução ao Chainlink e Oracles (Data Feed)</strong></li><li>Chainlink VRF (Verifiable Random Function) para Sorteios e Jogos CCIP Cross-chain com Chainlink: Interoperabilidade entre Blockchains</li><li>Chainlink Functions</li><li>Chainlink Smart Contract Automation</li><li>Chainlink Proof of Reserve: Garantindo a Transparência de Ativos</li></ul><h3>O que é a Chainlink?</h3><p>A Chainlink é uma plataforma de computação descentralizada que ajuda as aplicações Web3 a se conectar com dados do mundo real, sejam eles do mercado financeiro, tokenização, automação ou interoperabilidade entre blockchains públicas ou privadas.</p><h3>O que são Oracles?</h3><p>Oracles são serviços que permitem que contratos inteligentes interajam com dados fora da blockchain. Esses dados podem ser de preços, resultados de esportes, clima ou qualquer outra informação que esteja disponível fora da rede.</p><h3>O que é a DON (Decentralized Oracle Network)?</h3><p>A Chainlink Decentralized Oracle Network (DON) é a infraestrutura que permite que múltiplos oracles cooperem para fornecer dados seguros e confiáveis para contratos inteligentes. Isso possibilita a criação de contratos inteligentes híbridos, combinando código on-chain com dados off-chain para que as dApps possam interagir com eventos do mundo real.</p><h3>Como a DON Garante a Segurança dos Dados?</h3><ul><li>Descentralização: Vários oracles agregam dados, o que torna difícil a manipulação por um único oracle.</li><li>Fusão de Dados: Os dados de diferentes oracles são combinados para fornecer uma única fonte confiável de informação.</li></ul><p>Componentes Principais:</p><ul><li>Node Operators: Operadores que executam os nós oracles.</li><li>Chainlink Reputation System: Sistema que avalia a confiabilidade dos operadores de nós.</li><li>External Adapters: Adaptadores que permitem que os oracles se conectem a APIs externas.</li></ul><h3>Problema Que os Oracles Resolvem</h3><p>Os contratos inteligentes, por padrão, não conseguem acessar dados fora da blockchain. Isso cria limitações para aplicações que precisam de informações externas, como preços de ativos ou verificação de clima. Os oracles Chainlink resolvem esse problema ao trazer dados off-chain de maneira descentralizada e confiável.</p><p>Exemplo Prático: Utilizando o Data Feed da Chainlink Objetivo: Buscar o valor do ETH/USD usando o AggregatorV3Interface da Chainlink e fazer o deploy na rede de teste Sepolia.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/0*6r-fDlhibtl6bAlk" /></figure><p>Objetivo do nosso exemplo:</p><ul><li>Buscar valor do ETH em Dollar</li><li>Usar o contrato AggregatorV3 da Chainlink</li><li>Deploy do smart contract na Sepolia Network</li></ul><p>Requisitos para nosso contrato conseguir utilizar os data feed oracles da chainlink:</p><ul><li><a href="https://docs.chain.link/resources/link-token-contracts?parent=dataFeeds#sepolia-testnet">Buscar o endereço do AggregatorV3Interface na Sepolia</a>, cada rede tem um endereço diferente</li><li><a href="https://faucets.chain.link/sepolia">Adquirir tokens da Link utilizando o faucet</a>s, eles são necessário para fazer chamadas para o data feed Chainlink, cada chamada será cobrado uma taxa em Link.</li></ul><p>Endereço do contrato do AggregatorV3 na Sepolia Test Network <a href="https://sepolia.etherscan.io/address/0x683f4defe33f7336cba6ada617934baa2bc7e6cc#code">0x694AA1769357215DE4FAC081bf1f309aDC325306</a></p><p>Vamos ao código do nosso smart contract Endereço do nosso contrato na rede Sepolia <a href="https://sepolia.etherscan.io/address/0x683f4defe33f7336cba6ada617934baa2bc7e6cc#code">0x683f4defe33f7336cba6ada617934baa2bc7e6cc</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wxFhkn9cdxemccm0" /></figure><p>Contrato que interage com Chainlink Data Feeed</p><h3>Vamos entender a função getDateFeed</h3><p>Chama a função latestRoundData() da interface AggregatorV3Interface é usada para obter os dados mais recentes do Data Feed.</p><p>Ela retorna múltiplos valores em uma tupla:</p><ul><li>roundId: Um identificador exclusivo para o conjunto de dados (rodada).</li><li>answer: O valor atual do Data Feed (no caso, o preço de ETH/USD).</li><li>startedAt: O timestamp de quando a rodada começou.</li><li>updatedAt: O timestamp de quando os dados foram atualizados pela última vez.</li><li>answeredInRound: O identificador da rodada em que a resposta foi computada.</li></ul><p>Retorno do Preço (answer)</p><p>A função retorna o preço mais recente que foi recuperado do Data Feed da Chainlink. Este preço é representado por uma variável do tipo int256, pois os feeds da Chainlink utilizam valores inteiros para representar preços, muitas vezes escalados para representar frações (como 18 casas decimais, dependendo do Data Feed).</p><h3>Resumindo:</h3><ul><li>A função getDateFeed() chama o Data Feed da Chainlink para buscar os dados mais recentes do preço do par ETH/USD.</li><li>Dentre os dados retornados, a função foca apenas no preço atual (answer).</li><li>O valor retornado por getDateFeed() é o preço mais recente do ETH em relação ao USD, que será um número inteiro (int256).</li></ul><p>Por exemplo, se o answer for 3000000000, isso pode representar $3,000.00 para o preço do ETH/USD, dependendo da precisão (número de decimais) usada no feed de preço.</p><h3>Retorno Final:</h3><p>A função retorna apenas o preço mais recente do ETH/USD em forma de int256, que pode ser usado por outros contratos ou funções que precisem dessa informação.</p><p>Aguardem o próximo artigo. Siga o canal <a href="https://youtube.com/@nftchoose">NFT Choose</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=912c6c2d71bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Desenvolva seu Próprio Contrato Inteligente Multi Sign Wallet.]]></title>
            <link>https://medium.com/@jeftar.mascarenhas/desenvolva-seu-pr%C3%B3prio-contrato-inteligente-multi-sign-wallet-b6d858c379c9?source=rss-79864ab0a14e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6d858c379c9</guid>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[multisig]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[solidity]]></category>
            <dc:creator><![CDATA[Jeftar Mascarenhas]]></dc:creator>
            <pubDate>Mon, 12 Aug 2024 12:01:39 GMT</pubDate>
            <atom:updated>2024-08-12T12:01:39.870Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*75fUgWZmBElslgcuyUMT-Q.png" /></figure><p>Aprenda o que é e como desenvolver seu próprio contrato inteligente Multi-Sign Wallet, elevando suas habilidades em programação blockchain.</p><h3>Multi-Sign Wallet Contract</h3><p>Um contrato Multi-sign (múltiplas assinaturas) é um contrato inteligente projetado para que sejam necessárias múltiplas assinaturas de endereços diferentes para que uma transação seja executada. Eles são comumente usados como carteiras.</p><p>Multi-sigs são contratos inteligentes usados como carteiras e isso desencadeia uma ampla variedade de casos de uso</p><p>Um contrato com múltiplas assinaturas funciona como uma “carteira”, pois pode reter e transferir fundos.</p><p>É chamado de “multi-sig” porque precisa de mais de uma assinatura para aprovar qualquer atividade de carteira, como a transferência de fundos.</p><p>Como os multi-sigs são alimentados por múltiplas chaves, eles evitam um único ponto de falha, o que torna significativamente mais difícil o comprometimento dos fundos.</p><p>Este design oferece um maior grau de segurança contra chaves perdidas ou comprometidas.</p><p>Antes de ir para o código é importante entender como funciona carteiras EOA e uma Multi-Sign.</p><h3>Eternally Owned Account EOA</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/0*Ab-vHziAxSvtb9Xp" /></figure><p>Como você pode ver no fluxo, é uma carteira controla por uma entidade externa geralmente um humano que detém a chave privada para assinar e enviar as transações. É considerada como ponto único de falha.</p><p>O dono na chave privada pode sofrer algum tipo de hackeamento ou mesmo perde a chave, com isso, perdendo o controle.</p><h3>Multi-Sign Wallet</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/0*qkknp0dkmRMrqH80" /></figure><p>Como o exemplo acima podemos ter uma carteira(Contrato) com múltiplas assinaturas que requer 2 de 3 confirmações para enviar fundos.</p><p>Aqui não importa se uma usuário perde sua chave, pois haverá outros usuários que poderão aprovar transações, expulsar a chave comprometida e adicionar novamente o usuário comprometido em um novo endereço.</p><h3>Benefícios da Multi-Sign Wallet</h3><ul><li><strong>Segurança Aumentada:</strong> Reduz o risco de perda de fundos, pois é necessário o comprometimento de várias chaves.</li><li><strong>Controle Compartilhado:</strong> Permite que várias partes compartilhem o controle sobre uma carteira, útil para organizações e empresas.</li><li><strong>Prevenção de Fraude:</strong> Dificulta transações não autorizadas, pois várias aprovações são necessárias.</li></ul><h4>Alguns casos de uso:</h4><ul><li>Famílias: Herança, Testamentos, Despesas Aprovadas de Despesas Domésticas</li><li>Empresas/Startups: Despesas Comerciais, Gestão de Tesouraria, Proteção contra Desfalque</li><li>Equipes/Organizações: Camisas de Equipe, Despesas de Viagem</li></ul><p>Por fim, vamos ao que você veio aprender, aprender como criar seu próprio contrato Multi-Sign Wallet.</p><h3>Vamos iniciar nosso contrato com as variáveis de estados</h3><h3>Variáveis de Estados do nosso contrato</h3><ul><li><strong>owners:</strong> Responsável por registra as carteiras habilitadas e que podem assinarem transações</li><li><strong>required:</strong> Número de assinaturas necessárias para que uma transação seja executada</li><li><strong>totalTransactions:</strong> Registra o total de transações e server como ID de cada transação</li><li><strong>transactions:</strong> Mapeamento de transações adicionadas</li><li><strong>confirmations:</strong> Mapeamento para confirmação se uma carteira confirmou uma transação</li><li><strong>isOwner:</strong> Mapeamento com as carteiras habilitadas para adicionar, aprovar e executar transações</li><li><strong>Transaction:</strong> Tipo customizado de estrutura de dados onde “to” é o destinatário da transação, “value” é o valor que será enviada ao destinatário e “executed” armazena se a transação foi executada ou não.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KAEUE9SiKrHLX9aL" /></figure><p>Adicionei erros customizáveis responsáveis por reverter a transação quando a transação não estiver de acordo com as regras de validação.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DjB1rfmjbivzagD5" /></figure><h4>No nosso construtor recebemos 2 parâmetros</h4><ul><li><strong>_owners:</strong> Lista para registra as carteiras habilitadas e que podem assinarem transações</li><li><strong>_required:</strong> Número de assinaturas necessárias para que uma transação seja executada</li></ul><h4>No construtor adicionei validações para garantir algumas regras</h4><ul><li><strong>NoOwnerAddressesAreSent:</strong> Garante que a lista de _owners não deve ser 0</li><li><strong>RequiredCannotZero:</strong> Garante que o _required não deve ser 0</li><li><strong>RequiredNotEnough:</strong> Garante que o required não pode ser maior que quantidade de carteiras no parâmetro _owners</li><li><strong>IsZeroAddress:</strong> Verificar se as carteiras são endereços validos</li><li><strong>OwnerAlreadyRegistered:</strong> Verificar se a carteira já foi adicionada na lista de owners</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/0*d-U7qzNwSSNdtVVB" /></figure><h4>Vamos a função receive e os modifiers</h4><ul><li><strong>receive:</strong> função responsável por habilitar o recebimento de ETH pelo smart contract</li><li><strong>onlyOwner:</strong> Verifica se uma carteira está habilitada a fazer transações(chamar funções), caso não reverte a transação</li><li><strong>notApproved:</strong> Verifica se uma transação já foi aprovada por uma carteira revertendo a transação</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Usjx0Dm79bDmbdW6" /></figure><p>transactionCount retorna a quantidade de transações que também servem id de transação.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/0*OhPq8JlJFslzjwrA" /></figure><p>Função interna addTransaction para criar uma nova transação recebendo to(destinatário) e value(valor que o destinatário receberá) e retorna o id da transação</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sUzy_NypR2IlRisW" /></figure><p>Função pública getConfirmationsCount recebe transactionId, responsável por fazer o cálculo a quantidade de confirmação que uma transação tem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*i05xYeYXYJG_TT4G" /></figure><p>Função pública isConfirmed recebe o parâmetro transactionId retornando se a transação tem a quantidade de confirmação necessária para ser executada.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/0*hnfSAJ1yrRlS1gFj" /></figure><p>Função interna executeTransaction recebe o parâmetro transactionId e faz as seguintes verificações e alterações:</p><ul><li><strong>transaction:</strong> variável que guarda a transação que será executada</li><li><strong>Verificações iniciais:</strong> Incialmente temos 2 ifs responsáveis por verificar se a transação foi confirmada para ser executado e se a transação já foi executado</li><li><strong>Payable Call:</strong> Função call envia o valor em ETH para o endereço de carteira do destinatário</li><li><strong>Verificação de envio bem sucedido:</strong> Após o envio do ETH para o destinatário é verificado se este envio foi bem sucedido caso retorne false a transação será revertida com erro customizado ExecuteTransactionFailure</li><li><strong>Atualização de estado:</strong> Função call envia o valor em ETH para o endereço de carteira do destinatário</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/0*kYFWdQl0JGa4x8hG" /></figure><p>A função internal confirmTransaction recebe o parâmetro transactionId, utilizar o transactionId para confirma a transação como true e faz a verificação se a transação está confirmada para ser executada, caso a função isConfirmed retorne true a função executeTransaction executará a transação.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xFLhesX3qk0aG_HQ" /></figure><p>Por fim, a função external submitTransaction que recebe o parâmetro to e value e chama o modificador onlyOwner garantindo que apenas as carteiras habilitadas podem chamar essa função.</p><p>A função submitTransaction faz 2 ações adiciona a transação e logo em seguida confirma essa transação.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hmQl1WDF8lSDRpRh" /></figure><p>O serviço de Multi-Sign Wallet bastante conhecido é o Gnosis Safe, que agora chama-se apenas Safe.</p><h3>Características da Safe:</h3><ol><li><strong>Contratos Inteligentes:</strong> Utiliza contratos inteligentes para definir as regras de assinatura e execução de transações.</li><li><strong>Interface de Usuário:</strong> Oferece uma interface amigável para configuração e uso, mas a segurança é garantida pelos contratos inteligentes subjacentes.</li><li><strong>Configuração de Assinaturas:</strong> Permite a configuração de múltiplos signatários e o número necessário de assinaturas para autorizar transações.</li><li><strong>Segurança e Flexibilidade:</strong> Oferece segurança robusta e flexibilidade, sendo amplamente utilizada por indivíduos e organizações para gestão de ativos digitais.</li></ol><p>Este artigo é para da uma introdução sobre Multi Sign e este contrato pode ser otimizado em todos os quesitos. Não use este contrato em produção.</p><p>Em breve este artigo será transformado em vídeo no canal</p><p>então aproveita fazer sua inscrição no meu canal.</p><p><a href="https://youtube.com/@nftchoose">NFT CHOOSE</a></p><p>Agradeço a você que chegou no canal até o final deste artigo! espero ter ajudado.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6d858c379c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Aprenda a criar e utilizar o padrão Create2 com Solidity para criar endereços de contratos…]]></title>
            <link>https://medium.com/@jeftar.mascarenhas/aprenda-a-criar-e-utilizar-o-padr%C3%A3o-create2-com-solidity-para-criar-endere%C3%A7os-de-contratos-f1ccb6badf5e?source=rss-79864ab0a14e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1ccb6badf5e</guid>
            <category><![CDATA[create2]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[contratos-inteligentes]]></category>
            <dc:creator><![CDATA[Jeftar Mascarenhas]]></dc:creator>
            <pubDate>Thu, 01 Aug 2024 14:27:28 GMT</pubDate>
            <atom:updated>2024-08-01T14:27:28.236Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ujXqI8PhG3xp5U5zIziQA.png" /></figure><h3>Aprenda a criar e utilizar o padrão Create2 com Solidity para criar endereços de contratos previsíveis</h3><p>Entenda como utilizar o CREATE2 para criar contratos com endereços previsíveis</p><p>Com a introdução do opcode CREATE2 pelo <a href="https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1014.md">EIP-1014</a>, os desenvolvedores de contratos inteligentes ganharam a capacidade de calcular o endereço de um contrato antes mesmo de sua implantação(deployment).</p><blockquote><em>Os opcodes são os comandos básicos que a EVM entende e executa. São utilizado para realizar operações.</em></blockquote><h3>Principais Vantagens</h3><ul><li><strong>Endereços Previsíveis:</strong> Permite calcular o endereço de um contrato antes de sua criação efetiva.</li><li><strong>Melhor Controle sobre a Implantação de Contratos:</strong> Fornece maior controle sobre o processo de implantação de contratos através do uso de salt.</li><li><strong>Reimplantação de Contratos:</strong> Permite reimplantar um contrato no mesmo endereço, caso o contrato original tenha sido auto-destruído.</li><li><strong>Inicialização mais Eficiente:</strong> Permite que contratos sejam financiados ou interajam com outros contratos antes de sua criação.</li><li><strong>Suporte a Aplicações Avançadas:</strong> Facilita a criação de padrões e aplicações avançadas que exigem previsibilidade e controle de endereços.</li></ul><p>Iremos utilizar um exemplo prático com o contrato SmartAccount e seu respectivo FactorySmartAccountCreate2</p><p>O SmartAccount é um contrato simples que possui um endereço de assinante (signer) definido na sua criação ao ser implementado.</p><p>Ele permite verificar o saldo e realizar saques, mas apenas pelo assinante designado.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jwjCJpbuCAatbIHn" /></figure><p>Contrato SmartAccount ele ser para teste da implementação CREATE2</p><p>O SmartAccount é um contrato básico onde receberá ETH antes mesmo sem ser implementado.</p><ul><li>signer: Endereço autorizado a retirar fundos.</li><li>getBalance: Retorna o saldo do contrato.</li><li>withdraw: Permite que o signer retire fundos do contrato.</li></ul><p>Para criar o endereço do contrato SmartAccount antes mesmo dele ser implementado, usaremos o padrão CREATE2.</p><h3>A Magia do CREATE2 com FactorySmartAccountCreate2</h3><p>O contrato FactorySmartAccountCreate2 é onde a mágica acontece.</p><p>Este contrato é responsável por implantar o SmartAccount utilizando o opcode CREATE2, o que permite que o endereço do contrato implantado seja previsível.</p><h3>Função deploy</h3><p>A função deploy é responsável por criar(implementar) uma nova instância do SmartAccount.</p><p>Ela utiliza um salt (um valor arbitrário) para garantir que cada instância criada tenha um endereço único e previsível e signer que é uma wallet(carteira) que o contrato SmartAccount espera como argumento.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/0*uzZ2pdY1WJmIH09D" /></figure><h3>Função getAddress</h3><p>A função getAddress permite calcular o endereço do contrato antes mesmo de sua implantação.</p><p>Ela utiliza o mesmo algoritmo do CREATE2 para prever o endereço baseado no salt e no endereço do signer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5paDD5NI0sBeaDiS" /></figure><p>bytes1(0xff): Constante usada no cálculo.</p><p>address(this): Endereço do contrato (FactorySmartAccountCreate2) de fábrica.</p><p>salt: Valor fornecido pelo usuário.</p><p>keccak256: Hash do bytecode do contrato e dos argumentos do construtor.</p><p>Este cálculo combina o endereço do contrato de fábrica, o valor de salt e o bytecode do contrato SmartAccount, incluindo os parâmetros do construtor, para gerar um endereço previsível para o contrato a ser criado.</p><p>Este endereço pode ser utilizado para pré-configurar interações, como por exemplo, envio de ETH com o contrato antes mesmo de sua implantação.</p><p>Detalhe sobre todo esse aninhamento de tipos para gerar o endereço:</p><p>A função keccak256 vai gerar um hash de 32bytes(256bits), esse hash resultante de keccak256 é um valor de 256 bits (uint256).</p><p>uint160 é usado para converter os primeiros 160 bits desse hash em um endereço Ethereum.</p><p>Endereços Ethereum são representados por 160 bits (20 bytes).</p><p>address(uint160(…)) converte o valor de 160 bits para o tipo address, que é o tipo utilizado para endereços no Ethereum.</p><h3>Função sendEther</h3><p>Permite enviar ETH para o endereço do SmartAccount antes mesmo dele ser implementado. Isso pode ser útil para inicializar o contrato com um saldo.</p><p>Eu criei essa função para enviar ETH a um endereço de contrato predefinido pela função getAddress.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/0*fRxCZ0YE8mgdTkxn" /></figure><h3>Código completo do FactorySmartAccountCreate2</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*5l-skLGv-mM4DxO_" /></figure><p>Espero que este artigo tenha ajudado a entender como o CREATE2 pode ser utilizado para criar contratos com endereços previsíveis e como podemos aplicar isso em nossos projetos.</p><p>Chegou até aqui aproveite para compartilhar, comentar e curtir este artigo. Inscreva-se no meu canal <a href="https://www.youtube.com/@nftchoose">NFT Choose</a> no Youtube.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1ccb6badf5e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cartório não deveriam ver DREX ou Blockchain com um problema para eles.]]></title>
            <link>https://medium.com/@jeftar.mascarenhas/cart%C3%B3rio-n%C3%A3o-deveriam-ver-drex-ou-blockchain-com-um-problema-para-eles-5c2866e45a48?source=rss-79864ab0a14e------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c2866e45a48</guid>
            <category><![CDATA[drex]]></category>
            <category><![CDATA[tokenization]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <dc:creator><![CDATA[Jeftar Mascarenhas]]></dc:creator>
            <pubDate>Sat, 27 Jul 2024 01:21:37 GMT</pubDate>
            <atom:updated>2024-07-27T01:21:37.892Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yifMqn00gnO_62UMv5R4Ug.png" /></figure><p>Os cartórios poderiam migrar para a blockchain para modernizar e agilizar processos.</p><p>Por exemplo, imagine que eu crie um token que representa uma cota de uma propriedade imobiliária.</p><p>Caso seja necessário que um cartório valide algum documento em papel relacionado à propriedade, o processo poderia funcionar assim:</p><ol><li>Geração de Token: Eu crio um token digital que representa uma cota de uma casa.</li><li>Validação pelo Cartório: O cartório recebe a demanda para validar o documento em papel relacionado à propriedade.</li><li>Processamento do Documento: O cartório realiza a validação necessária, emitindo o documento em papel.</li><li>Assinatura na Blockchain: O cartório assina digitalmente na blockchain, confirmando que o documento em papel foi emitido.</li><li>Hash e Upload no IPFS: O documento é então digitalizado, uma hash que representa o documento é gerada e o arquivo é enviado para um sistema de armazenamento descentralizado, como o IPFS (InterPlanetary File System).</li></ol><p>Dessa forma, temos uma confirmação na blockchain de que o documento físico foi validado pelo cartório e uma cópia digital do documento está disponível de forma segura e imutável no IPFS, garantindo a integridade e autenticidade das informações.</p><p>O problema é que os cartórios estão vendo a blockchain como um obstáculo, mas na verdade, ela pode ser uma solução que traria mais rendimentos.</p><p>Com taxas menores e um fluxo maior, os cartórios poderiam aumentar sua receita. Além disso, a necessidade de uma equipe grande seria reduzida, já que muitos processos poderiam ser automatizados.</p><p>A introdução da inteligência artificial nesse contexto melhoraria ainda mais a eficiência e a precisão das operações, trazendo uma revolução tecnológica que beneficiaria tanto os cartórios quanto seus clientes.</p><h3>Para facilitar o entendimento crie 2 fluxos sem blockchain e com blockchain</h3><p>Fluxo 1: Como é Hoje com Cartório sem Blockchain</p><ol><li>Geração do Documento: Um documento é criado para representar uma transação ou propriedade.</li><li>Submissão ao Cartório: O documento físico é submetido ao cartório para validação.</li><li>Processamento pelo Cartório:O cartório verifica a autenticidade do documento.O cartório pode precisar de várias etapas de verificação manual e consultas a diferentes registros.</li><li>Emissão do Documento Validado: O cartório emite um documento validado em papel.</li><li>Armazenamento Físico: O documento validado é armazenado fisicamente no cartório.</li><li>Consulta e Acesso: Para futuras consultas, as partes interessadas devem visitar o cartório ou solicitar uma cópia física.</li></ol><p>Fluxo 2: Cartório com Blockchain</p><ol><li>Geração do Token: Um token digital é criado para representar uma cota de uma propriedade ou transação.</li><li>Submissão ao Cartório para Validação: A demanda de validação do documento em papel é submetida ao cartório.</li><li>Processamento pelo Cartório:O cartório verifica a autenticidade do documento físico.O cartório emite o documento em papel, realiza a validação e emite uma assinatura digital na blockchain.</li><li>Assinatura na Blockchain: O cartório assina digitalmente na blockchain, confirmando a emissão do documento físico.</li><li>Hash e Upload no IPFS:O documento é digitalizado.Uma hash que representa o documento é gerada e o arquivo é enviado para o IPFS.</li><li>Consulta e Acesso Digital:A confirmação de validação do documento está disponível na blockchain.A cópia digital do documento pode ser acessada de forma segura e imutável no IPFS.</li></ol><h3>Alguns Benefícios do Cartório com Blockchain</h3><ul><li>Maior Eficiência: Redução de etapas manuais e consultas a registros físicos.</li><li>Segurança e Imutabilidade: Documentos são protegidos contra fraudes e alterações.</li><li>Facilidade de Acesso: Consulta e verificação de documentos digitalmente a qualquer momento.</li><li>Redução de Custos: Menor necessidade de armazenamento físico e de equipe para processar documentos.</li><li>Automação: Processos automatizados, especialmente com o uso de AI.</li></ul><p>Fique atento para os próximos artigos e inscreva-se no meu canal no <a href="https://youtube.com/@nftchoose">Youtube</a>.</p><p>Até o próximo artigo.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c2866e45a48" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>