r/BlockchainStartups • • 3d ago

Discussion Delegated Spending Protocol (Updates)

Building a cryptographically enforced delegated spending protocol — 25–30% complete

I’ve been working on a Cryptographically Enforced Delegated Spending Protocol (DSP): a policy-controlled allowance system based on delegated secret keys rather than account-based approvals.

The idea is that a resource owner could allocate bounded spending permissions to another person or application. The consumer proves possession of a delegated secret key and may spend incrementally until the policy limit is reached. A relayer could even submit the transaction on their behalf, allowing the consumer to avoid managing a wallet or paying gas directly.

Current progress:

- Implemented BLS12-381 delegation key generation and verification

- Added Schnorr-style challenge binding

- Added on-chain delegation initialization

- Added policy, counter, and consumed-amount storage structures

- Created Rust examples for delegators and consumers

- Added Solidity BLS12-381 point addition and scalar multiplication support

- Verified delegation against on-chain state in the consumer prototype

The project is still experimental and incomplete. I am focusing on the core cryptographic model before adding partial spending, replay protection, revocation, and withdrawal features.

I’d especially appreciate feedback and suggestion on:

- The cryptographic construction

- Counter-based replay prevention

- Revocation and recovery design

The project is open source and documented in the repository: [Delegated-Spending-Protocol](https://github.com/Khatri23/Delegated-Spending-Protocol)

2 Upvotes

3 comments sorted by

•

u/AutoModerator 3d ago

Thanks for posting on r/BlockchainStartups!

Check out the top posts of the week:

https://www.reddit.com/r/BlockchainStartups/top/?t=week

Moderators of r/BlockchainStartups

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Odd_Crow4795 3d ago

Have you considered how the transactions will be executed? Is it decentralised, so anyone can hold money and make a transaction with minimal onboarding? Is it Post-Quantum Post-AI proof? What’s to stop someone copying a secret key?

1

u/Chemical-Type-9157 2d ago

right now, for the demo the person who hold the delegation key can use any of wallet, his own or friend because authorization depends on cryptographic key rather than address. In later, a relayer can execute transaction without the person needing the wallet. It's decentralized. The delegator only needs to setup the parameter to exercise delegation, after that he can securely distribute the delegation key. The person holding the delegation key provide the proof of knowledge of this key on-chain for consumption. It's not Post-Quantum since it relay's on schnorr's signature scheme and based on DLP. But future work will be focus on this, and it is quite hard to fit the scheme. The ground technology behind the construction is proxy signature, instead of using heavy ZK proofs, it relay on lightweight construction.
Lastly,
A delegation key proves possession of a secret, not the identity of the person possessing it. So, anyone with the copy of a secret key can indeed provide proof. Also there is a trust assumption on delegator. Last one is quite good since delegator will produce the delegation key, need to figure out something to overcome the risk.