Introducing dAuth: Simplified, Decentralized Authentication in Ratio1

Education

Introducing dAuth: Simplified, Decentralized Authentication in Ratio1

In our journey toward creating a frictionless AI meta Operating System, we’ve tackled everything from no-code deployment to decentralized infrastructure. Today, we’re thrilled to introduce dAuth - a new service designed to handle decentralized authentication effortlessly for both the Naeural SDK and Edge Nodes. By eliminating the typical headaches of environment variables, password management, and manual configurations, dAuth brings us one step closer to our ultimate vision: AI power to the people - fast, affordable, and easy to access.

Side Note: Although Ratio1 is built on the underlying Naeural Edge Protocol technology, we are consolidating our branding to Ratio1. That means we’ll be referring to everything in our ecosystem - SDK, Edge Nodes, and so on - under the single Ratio1 name going forward. Well, we might occasionally and affectionately call the SDK with Naeural Edge Protocol SDK so please forgive us in advance:)

Why We Built dAuth

Most AI solutions and microservices require complex configurations just to communicate securely - think multiple passwords, ports, or even entire DevOps workflows. In the Naeural ecosystem, we wanted something better: a trustless and automated way to onboard new participants, whether they’re running our SDK or spinning up an Edge Node. That’s where dAuth comes in.

The Traditional Problem

  • Multiple credentials: Managing countless keys, passwords, or certificates.

  • Manual steps: Endless CLI commands or config files for each environment.

  • Fragile setups: Risk of human error or mismatched versions when rolling out updates.

Major cloud providers like AWS, Azure, and Google Cloud have solutions for automating and managing application credentials—e.g., AWS IAM roles, Azure Managed Identities, or GCP Service Accounts. However, those are centrally controlled within each provider’s ecosystem and typically require manual setup of policies, environment variables, and keys. By contrast, dAuth is decentralized and automatically provisions/authenticates each new instance using a private key with on-chain validation (for Edge Nodes), reducing the traditional overhead of configuring and rotating credentials.

The dAuth Difference

  • Automated key generation: No more manual provisioning - each SDK or Node gets a unique private key.

  • On-chain validation: Edge Nodes must have valid on-chain licenses; SDK clients get immediate access to dev subnets.

  • Decentralized endpoint: dAuth scales horizontally across the network, meaning no single point of failure.

How dAuth Works

Here’s a quick rundown of the dAuth flow that kicks in the moment you launch a Node or SDK instance:

  1. Instantiation
    When you start a fresh Ratio1 SDK (formerly known as Naeural Edge Protocol SDK) instance or spin up a Ratio1 Edge Node, it automatically generates a unique private key and protocol address.

  2. Signed Request
    Using the SDK or Edge Node private key, the instance signs a request and sends it to a decentralized endpoint - dAuth - whose replicas live in the ratio1 (Ratio1) network.

  3. Permission Check
    The dAuth service checks whether:

    • The Edge Node holds a valid on-chain license that has the Edge Node address assigned to it (each Edge Node elliptic curve keys have both internal node address as well as EVM-compatible address).

    • The SDK is allowed initial access to dev subnets. Same keys and addresses as with the Edge Node - no licence required though.

  4. Secure Auth Info Delivery
    If the checks pass, dAuth securely delivers the necessary authentication and authorization data back to the Node/SDK. This effectively says, “You’re in. Let’s get you online.”

  5. Network Access
    At this point, the Node or SDK seamlessly connects to the Ratio1 network, letting you skip the usual tedious “ports, secrets, and environment variable” dance.

Quick Start Examples

Running an Edge Node

The easiest way to get started with the pre-launch version of our Edge Node is via Docker. Give it a whirl:

docker run naeural/edge_node:develop

This command kicks off a container that during the boot operation will generate a keypair for your Node, communicate with the dAuth endpoint, verify and secure your Node’s connection to the network - no manual config needed.

Exploring the SDK

If you’d rather test out the Ratio1 SDK on your local machine, simply grab it via pip:

pip install --upgrade naeural_client

Once installed, try checking for active testnet nodes near you:

nepctl get nodes --online

That’s it. If everything’s working, you’ll see a list of available nodes in the ratio1 testnet. dAuth has already done the heavy lifting of authenticating your SDK instance behind the scenes.

Building Toward a Bigger Vision

dAuth is just the latest chapter in Ratio1’s ongoing mission to “democratize AI” and bring a new level of usability to decentralized technology. Combined with our no-code/low-code tools, automated deployment, and edge computing infrastructure, dAuth ensures anyone can participate - without having to juggle config files or DevOps overhead.

  • For Developers: dAuth means you can focus on building, not babysitting credentials.

  • For Edge Node Operators: Spin up a Node and monetize your hardware without tedious onboarding steps.

  • For Non-Technical Users: Enjoy frictionless AI experiences - no complicated secrets or ports to remember. No-password deployment for a No-code platform 🙂

Potential Security Issues

We are fully aware that no system is without risks, and dAuth is no exception so the main issue would be related to your private keys. 

Key Management: Any compromise of your private key could expose your Node or SDK to unauthorized use. Adequate security measures are essential and this holds totally true for your Wallet seed phrase, right?!?

Limited Access: We are trying to limit access to the auto generated private keys but this does not stop anyone from accessing them and copying them to unsecured “hot” locations. Again, the same holds true for your cryptocurrency wallets private keys…Right?

Despite these potential issues, dAuth’s design aims to minimize attack surfaces by automating key generation and permission checks in a decentralized manner, thus reducing manual errors and single points of failure.

Conclusion

We’re incredibly excited to see how dAuth fuels the next wave of AI applications deployment, from simple testnet experiments to production-scale microservices. By removing authentication hurdles and letting the network handle security and permission checks, dAuth paves the way for developers, operators, and end-users to innovate freely.

So go ahead:

  • Run that docker run naeural/edge_node:develop

  • Install the naeural_client via pip

  • Explore the network with nepctl get nodes --online

And most importantly, have fun building the AI future with Ratio1 - where complicated configurations are a thing of the past, and frictionless, trustless innovation is just a few clicks away.

Stay tuned for more updates, and let us know how Ratio1 is helping you simplify your AI journey. We’re always eager to hear your feedback and see what you’ll build next!

Andrei Ionut Damian

Andrei Ionut Damian

Jan 20, 2025

The Ultimate AI OS Powered by Blockchain Technology

©Ratio1 2024. All rights reserved.