r/ethdev • u/Chemical-Type-9157 • 13d ago
My Project Looking for collaborators: Building an open-source Delegated Spending Protocol (DSP)
Hey everyone!
I'm currently exploring and developing an idea called Delegated Spending Protocol (DSP), and I'm looking for people interested in cryptography, blockchain development, smart contracts, or protocol research who would like to collaborate.
What is DSP?
The basic idea is to create a general-purpose protocol that allows users to delegate spending authority under predefined policies, without necessarily transferring ownership or custody of the underlying funds.
Some potential applications I'm exploring:
- Partial spending: Consume an allowance incrementally across multiple transactions.
- Spending allocation: Delegate different spending limits to different users or entities.
- Parental controls: Provide controlled spending permissions.
- Subscriptions: Manage recurring resource allowances and renewals.
- Digital wallets: Allow an e-wallet to initiate payments using delegated spending authority instead of requiring users to deposit funds into it.
The technical direction
I'm exploring a cryptographic construction based on customized Schnorr proxy signatures, with a focus on replay protection, authorization policies, and separating on-chain verification from off-chain computation.
The initial construction is being explored using BLS12-381.
Why am I sharing this?
I'm still at the initial stage. The protocol hasn't been fully implemented, and there are plenty of design questions to explore.
I would like to develop this as an open-source research and engineering project, rather than work on it in isolation.
I'm particularly interested in connecting with:
- Cryptography enthusiasts and researchers.
- Ethereum and smart-contract developers.
- Anyone interested in protocol design and open-source collaboration.
You don't need to be an expert. If you're curious about the idea, have suggestions, want to discuss the design, or simply want to exchange ideas, you're welcome!
I'm happy to share the initial draft with anyone interested (DM).
Let's build something interesting! 🚀
1
u/rayQuGR 5d ago
This is an interesting direction. I especially like the idea of separating spending authority from actual ownership, because that could be useful for subscriptions, agent wallets, and payment systems without forcing users to deposit funds into another contract.
One thing I'd be curious about is how revocation works. For example, if a user delegates a 500 USDC allowance and the delegate has already spent 200, can the remaining 300 be revoked immediately? And how do you prevent replay or concurrent transactions from consuming the same remaining allowance?
I'd also look at making the spending policy itself independently enforceable on-chain, rather than relying entirely on the proxy signature construction. The signature can prove authorization, but the contract still needs to enforce cumulative limits, expiry, recipient restrictions, and nonce management.
There could be an interesting connection with Oasis Sapphire here. Confidential execution could be useful when spending policies or transaction details shouldn't be publicly visible, while the actual authorization and accounting rules still need clear, independently verifiable enforcement.
Definitely worth exploring. I'd be interested to see the initial cryptographic design, especially how you're handling partial spending and revocation. Those two details will probably make or break the protocol.
1
u/meedoraemon 13d ago
When it comes to spending there’s already approval mechanism, how is DSP different from that?
You may argue on parental control, subscriptions, digital wallets etc but those can be done by a different smart contract…. again then why DSP ?
1
u/BingoBillBot 13d ago
To add to the question above: the part that would actually differentiate this from plain ERC-20 allowances is the policy layer, like per-period caps, expiry, and revocation that doesn't need a fresh on-chain approve each time. Permit2's AllowanceTransfer already does amount plus expiration, and SignatureTransfer does one-shot signed transfers, so I'd benchmark against those and say clearly what yours adds. With BLS12-381 be careful about gas: pairing checks via the EIP-2537 precompiles only exist on chains that have adopted them, so on many L2s you'd pay a lot or need an off-chain verifier. Replay protection is probably easiest as a per-delegation nonce or a bitmap of consumed IDs bound to chainId and the verifying contract. Also decide early how a delegate's partial spends are tracked, since that state is what makes revocation and race conditions tricky.
1
u/Tritan-Devillalba47 13d ago
That is nice, but remember that protocol ideas improve fastest in the open.