Safe eds proposal
Authors: peersky.eth ( tim@peeramid.xyz )
Created: 2025-03-22
Executive Summary
This proposal seeks SafeDAO’s support to implement the Ethereum Distribution System (EDS), a standardized, secure, and interoperable framework tailored for distributing Safe smart contracts, modules, and associated infrastructure. Currently, the Safe and largely, Ethereum ecosystem lacks a unified distribution channel, leading to fragmentation, hindering developer collaboration, and complicating security verification for end-users.
EDS addresses this by providing on-chain, versioned distributions with verifiable source provenance. The primary goal is to establish this robust foundational infrastructure, thereby enhancing security, improving the developer experience through reusable standards, and fostering a more vibrant and trustworthy module ecosystem. While EDS architecture enables potential future applications for SAFE token utility and revenue generation via its TokenizedDistributor component, the immediate focus is on building this essential public good for the Safe ecosystem.
We request $220,000 USDC (or SAFE equivalent) to fund the development of core EDS contracts adapted for Safe, a Safe Guard Extension, essential on-chain repositories, initial Guard module examples, developer tooling, comprehensive audits, documentation, workshops, and one year of technical support focused on community enablement. This investment aims to significantly improve the security posture and development velocity within the Safe ecosystem.
Abstract
This proposal suggests DAO support for implementing the Ethereum Distribution System (EDS) to establish a trusted, standardized, and secure channel for Safe smart contract and module distribution. Addressing the current lack of unified distribution infrastructure, EDS introduces on-chain, versioned repositories and verifiable package provenance.
By leveraging EDS, the SafeDAO can significantly enhance ecosystem security through immutable, auditable distributions, foster a more interoperable and efficient module ecosystem by providing developers with reusable standards, and lay the groundwork for potential future SAFE token utility applications through EDS’s built-in mechanisms.
This proposal details the integration of EDS, the development of Safe-specific components, and a plan for community enablement, ultimately aiming to strengthen the core infrastructure supporting Safe wallets and modules.
Proposal types
State which proposal type this proposal belongs to.
SEP: Constitutional Proposals
SEP: Governance Proposals
Other SEPs
Proposal details
Background
Currently, the Safe ecosystem lacks an effective, standardized solution for distributing and managing Safe modules, particularly Guards. This absence hinders innovation, makes it difficult for users to discover and trust third-party extensions, and complicates security auditing. Developers often resort to custom factory solutions, increasing fragmentation and redundant effort.
To address this, Peeramid Labs has developed the Ethereum Distribution System (EDS), a generic framework utilizing Distribution and versioned Repository smart contracts. EDS offers a standardized alternative, allowing developers to package and distribute software components securely and efficiently.
Key aspects EDS brings to the Safe ecosystem include:
- Standardization: Provides common interfaces and SemVer compatible versioning for modules.
- Security: Enables immutable source code references (aligning with ERC-7744/EIP-7784 concepts) and hooks for runtime security checks and vulnerability management (aligning with ERC-7746). It also allows for linking distributions to verified UI implementations (e.g., IPFS hashes).
- Efficiency: Reduces redundant development work by providing reusable factory patterns.
- Flexibility: Supports concepts like TokenizedDistributor for potential monetization models and allows for user-driven upgrade paths (though this proposal focuses on the foundational setup).
Smaug - Example Safe Guard Plugin
To demonstrate EDS’s capability in addressing real security needs (like those highlighted by the ByBit attack), we developed the Smaug Guardian plugin. Smaug introduces configurable budget controls (daily, per-block, per-tx, total). Users can explore and instantiate Smaug via EDS at solutions.peeramid.xyz. This serves as a practical example of how EDS can facilitate the distribution of valuable Safe modules.
Purpose
The primary goals of this proposal are ordered by priority:
-
Establish Secure & Standardized Distribution: Implement the Ethereum Distribution System (EDS) tailored for Safe, creating a robust, reliable, and unified channel for deploying and managing Safe smart contract infrastructure and modules. (Primary Goal)
-
Enhance On-Chain Security and Transparency: Utilize EDS’s capabilities for on-chain versioning, immutable source code references (per ERC-7744/EIP-7784 concepts), and runtime security hooks (per ERC-7746 concepts) to increase the verifiability and security posture of Safe modules and infrastructure.
-
Foster Module Ecosystem Growth: Provide developers with a standardized, reusable platform (EDS) for building, packaging, and distributing Safe modules and extensions, lowering barriers to entry and encouraging innovation.
-
Enable Future Token Utility & Revenue Potential: Implement EDS components, like the TokenizedDistributor, which provide the technical capability for the DAO to explore future initiatives related to SAFE token utility or monetization models for specific distributions, directly supporting ORBA goals.
Proposal
We propose that the SafeDAO support the integration and deployment of the Ethereum Distribution System (EDS) specifically tailored for the Safe ecosystem. This involves developing Safe-specific components, deploying core EDS infrastructure under DAO control, and providing initial support and enablement for the community.
Deliverables:
- Safe DAO owned EDS Distributor contract: A DAO-controlled contract instance (likely a TokenizedDistributor type) to manage the listing and distribution of approved Safe infrastructure and modules.
- Safe DAO owned Wallets Repository contract: An EDS-compliant repository contract managed by the DAO for versioned distributions of core Safe wallet contracts.
- Safe DAO owned Module/UI Repository contract: An EDS-compliant repository linking specific module/wallet versions to verified metadata, potentially including whitelisted user interface (UI) URIs (e.g., IPFS hashes) for enhanced frontend security.
- Safe Guard Extension: A custom smart contract extension enabling Safe wallets to interact securely with the EDS framework (e.g., for version checks, upgrade facilitation).
- Initial Safe Guard Examples (3): Development and packaging (as EDS distributions) of three distinct Safe Guard plugins showcasing different protection strategies. These will be licensed to ensure the DAO controls their canonical distribution via the DAO Distributor.
- Enhanced EDS SDK & Tooling: Improvements to the existing EDS SDK and CLI tools to streamline the process for developers creating and publishing Safe modules via EDS.
- Comprehensive Documentation & Workshops: Detailed documentation for developers and users, plus at least 5 educational workshops (online or in-person) to facilitate understanding and adoption.
- Security Audits: Independent security audits for the core EDS contracts being deployed and the three custom Safe Guard examples developed under this proposal.
- One Year Technical Support & Community Enablement: Dedicated support channel, ongoing maintenance for deliverables, governance support for initial listings, and focused efforts to enable community self-sufficiency.
Effects and Impact Analysis
Benefits:
- Enhanced Security & Trust:
- Provides on-chain, verifiable provenance for Safe modules via immutable distributions (ERC-7744/7784 alignment).
- Enables standardized runtime security checks and vulnerability management hooks (ERC-7746 alignment).
- Facilitates linking contract versions to verified UI implementations, mitigating UI spoofing risks.
- Clear on-chain versioning increases transparency and auditability.
- Improved Efficiency & Standardization:
- Reduces redundant development effort by providing standard factory patterns and reusable components.
- Introduces SemVer-compatible versioning for better dependency management.
- Standardized interfaces promote interoperability between modules and across the ecosystem.
- Mitigate UI Vulnerabilities (ByBit case): Implementing EDS’s enables to distribute IPFS hashes of interfaces as part of on-chain packaging. DAO & Security providers can attest to UI security in runtime. Such information may be used to create secure browsing user experience.
- Fostered Ecosystem Growth (Supports ORBA Goal):
- Lowers the barrier for developers to create, distribute, and gain trust for new Safe modules and Guards.
- Allows the DAO to curate a repository of high-quality, trusted modules.
- Improves the composability of Safe infrastructure.
- Future Potential (Supports ORBA Goal):
- The TokenizedDistributor component provides the DAO with the option to implement SAFE token utility or monetization for specific distributions in the future.
- Creates a foundation for a potential decentralized market of security providers offering services via EDS hooks.
Cons & Risks:
- Complexity: Initial setup and understanding the EDS framework may require specialized expertise for developers and the DAO.
- Mitigation: Comprehensive documentation, dedicated support, workshops, and developer tooling provided by Peeramid Labs. Phased rollout focusing on core functionality first.
- Technical Risks: Potential for bugs or vulnerabilities in the EDS contracts or the Safe-specific integrations.
- Mitigation: Rigorous internal testing, comprehensive external security audits (included in funding), and adherence to security best practices. Emergency security hooks for the DAO council in the Distributor contract.
- Adoption Risk: Achieving broad adoption by developers and integration into user-facing applications requires effort beyond just building the infrastructure.
- Mitigation: Focus on excellent developer experience (DX), leverage SafeDAO’s reputation, engage key ecosystem partners early, ensure standards are open and easy to integrate; Promote EDS usage across other Ethereum ecosystem projects to foster industry standard level of adatpion.
- DAO Operational Overhead: Long-term maintenance of the DAO-controlled Distributor (managing listings, governance) and associated repositories will require ongoing DAO resources and defined processes beyond the initial support year.
- Mitigation: Design core contracts for robustness. Provide extensive enablement during the support year. Establish clear initial governance guidelines for managing the Distributor.
Alternative Solutions
Developing a bespoke distribution system entirely in-house would be resource-intensive, risk further ecosystem fragmentation, likely offer less functionality than the purpose-built EDS, and might struggle for broader community adoption compared to leveraging an open standard. EDS provides a more efficient, collaborative, and feature-rich path.
Implementation
The core implementation involves deploying the EDS contracts (Distributor, Repositories) under DAO control, developing the Safe Guard Extension, enhancing the necessary tooling, and packaging the initial Guard examples.
High-Level Architecture:
The process will involve iterative development, rigorous testing, security audits, and deployment, followed by community outreach and support as outlined in the Deliverables and Support sections.
Open Questions
- Major Version Upgrades: EDS architecture can support user-driven upgrades for major versions via migration scripts, offering flexibility but adding complexity. Is this a high-priority feature for the community initially, or should we focus on simpler upgrade paths first?
We welcome community feedback on this and other aspects to ensure the EDS implementation aligns with the Safe ecosystem’s needs.
Funding Request
To implement EDS for Safe, conduct necessary audits, and provide initial support, Peeramid Labs requests $220,000 USDC (or SAFE equivalent at the time of transfer). This funding is allocated as follows:
- Safe-Specific Development ($50,000):
- Custom EDS Safe Guard Extension Development: $10,000 (1 month FTE)
- Development of Initial Safe Guard Examples (Package of 3): $20,000 (2 months FTE)
- End-User Interface Portal (Basic interface for Guard installation/discovery): $20,000 (2 months FTE)
- Core EDS Enhancements & Tooling ($40,000):
- EDS Smart Contract Development (Finalizing features relevant to Safe): $30,000 (3 months FTE)
- SDK Improvements & Developer Tooling: $10,000 (1 month FTE)
- (Note: While enhancing core EDS, this work directly enables the Safe implementation)
- TBD: We are open to approach other ecosystem projects with proposal to co-sponsor this part of work, given Safe DAO shows preliminarly (snapshot) support for other components of this propoisal.
- External Security Audits ($80,000):
- Audits of the 3 developed Safe Guards: $40,000 (Projected cost)
- Security Audit of EDS Core Functionality (Quote provided by oxorio): $40,000
- TBD: We are open to approach other ecosystem projects with proposal to co-sponsor this part of work, given Safe DAO shows preliminary (snapshot) support for other components of this propoisal.
- Support, Education & Enablement ($50,000):
- Dedicated Support & Maintenance (1 Year): $30,000
- Workshops, Documentation & Community Enablement: $20,000
Justification:
This funding represents an investment in critical, foundational infrastructure for the Safe ecosystem. It covers the specialized development required to tailor EDS, rigorous security audits essential for user trust, and the initial support needed to ensure successful adoption and community enablement. The requested amount reflects the senior expertise involved and is positioned as a cost-effective approach compared to developing a similar system in-house or via disparate, non-standardized efforts.
Licensing & DAO Control: The three Safe Guard modules developed under this funding will be explicitly licensed to grant the SafeDAO control over their canonical distribution via the DAO-owned EDS Distributor contract. This ensures the DAO fully controls the distribution and any potential monetization strategy for these specific deliverables.
End-User Interface Portal sponsored under this proposal funding & hosted by Peeramid Labs will explicitly list only Guard extensions that, in case of generating revenue, directly share it with Safe DAO with at least 30% share. TBD: If DAO wants to have full revenue of that portal, a hosting and maintenance expenses must be discussed in prior.
About Peeramid Labs
Peeramid Labs is a collective focused on developing tools and infrastructure for decentralized systems, emphasizing trust, transparency, and security. Our team brings relevant, senior-level experience to this proposal:
- Direct Experience: As founder, my background includes security engineering work at OpenZeppelin, contributing to the security audits and consulting for projects such as Compound, The Sandbox, and the Bank of International Settlements’ Project Mariana. This experience directly informs our rigorous approach to building secure and reliable infrastructure like EDS. My background also includes over 15 years of successful product delivery across various industries (details at https://peersky.xyz).
- Web3 Contributions: We actively contribute to Ethereum standards (ERC-7746, EIP-7784), identify critical vulnerabilities (example), and develop R&D projects like EDS and Rankify.
- Philosophy: We believe that web3 requires bold experimentation with foundational, decentralized concepts like EDS to realize its full potential, moving beyond the limitations of centralized models. Our work reflects this commitment to building innovative, user-centric decentralized solutions without VC constraints. We are passionate about collaborating with the SafeDAO to build valuable, secure infrastructure for the ecosystem.
We are members of the Ethereum Enterprise Alliance and contributors to DeFi Risk Assessment Guidelines.
Copyright
Copyright and related rights waived via CC0.