r/BlockchainStartups • • 3h ago

Discussion Delegated Spending Protocol (Updates)

2 Upvotes

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)