libdelve
Core library for the Delegatable Verification Protocol (DelVe).
DelVe is a protocol for verifying domain ownership across multiple decentralized services through an optional delegate service. It enables domain owners to manage verification across numerous instances while maintaining full control over authorization decisions.
Features
- DNS-based configuration discovery
- Support for both delegated and direct verification modes
- Ed25519 signature verification
- Challenge generation and validation
- HTTP client for delegate service integration (with
delegatefeature)
Installation
Add this to your Cargo.toml:
[]
= "0.1"
For direct verification mode only (without delegate client):
[]
= { = "0.1", = false }
Usage Example
Verifier (Service validating domain ownership)
use ;
use Duration;
async
Delegate Service (Managing verification for domain owners)
For a complete example of implementing a delegate service, see examples/delegate_service.rs.
DNS Configuration Discovery
use discover_dns_config;
async
DNS Record Format
Domains must publish a TXT record at _delve.<domain> with the following format:
Delegate Mode:
v=delve0.1; mode=delegate; endpoint=https://verify.example.org; key=<base64-encoded-public-key>
Direct Mode:
v=delve0.1; mode=direct; key=<base64-encoded-public-key>
Documentation
For the full protocol specification, see SPEC.md in the repository root.
License
See the repository root for license information.