Prad Nukala 44027b9303
feature/1149 vault allocation error (#1173)
- **refactor: update devbox configuration and scripts**
- **refactor: remove web documentation**
- **refactor: move resolver formatter to services package**
- **refactor: Rename x/vault -> x/dwn and x/service -> x/svc**
- **refactor: remove unused dependencies and simplify module imports**
- **refactor: remove dependency on DWN.pkl**
- **refactor: Move IPFS interaction functions to common package**
- **refactor: remove unused TUI components**
- **feat: add gum package and update devbox configuration**
- **refactor: rename Assertion to Account and update related code**
- **fix: resolve rendering issue in login modal**
- **refactor: migrate build system from Taskfile to Makefile**
- **refactor: Deployment setup**
- **refactor: Update Credential table to match WebAuthn Credential
Descriptor**
- **feat: add fast reflection methods for Capability and Resource**
- **fix: update devbox lockfile**
- **feat: add support for parent field and resources list in Capability
message**
- **feature/1149-vault-allocation-error**
- **fix: adjust fullscreen modal close button margin**
2024-11-26 22:05:50 -05:00
..

x/svc

The svc module is responsible for managing the registration and authorization of services within the Sonr ecosystem. It provides a secure and verifiable mechanism for registering and authorizing services using Decentralized Identifiers (DIDs).

Concepts

  • Service: A decentralized svc on the Sonr Blockchain with properties such as ID, authority, origin, name, description, category, tags, and expiry height.
  • Profile: Represents a DID alias with properties like ID, subject, origin, and controller.
  • Metadata: Contains information about a svc, including name, description, category, icon, and tags.

Dependencies

State

The module uses the following state structures:

Metadata

Stores information about services:

  • Primary key: id (auto-increment)
  • Unique index: origin
  • Fields: id, origin, name, description, category, icon (URI), tags

Profile

Stores DID alias information:

  • Primary key: id
  • Unique index: subject,origin
  • Fields: id, subject, origin, controller

Messages

MsgUpdateParams

Updates the module parameters. Can only be executed by the governance account.

MsgRegisterService

Registers a new svc on the blockchain. Requires a valid TXT record in DNS for the origin.

Params

The module has the following parameters:

  • categories: List of allowed svc categories
  • types: List of allowed svc types

Query

The module provides the following query:

Params

Retrieves all parameters of the module.

Client

gRPC

The module provides a gRPC Query svc with the following RPC:

  • Params: Get all parameters of the module

CLI

(TODO: Add CLI commands for interacting with the module)

Events

(TODO: List and describe event tags used by the module)

Future Improvements

  • Implement svc discovery mechanisms
  • Add support for svc reputation and rating systems
  • Enhance svc metadata with more detailed information
  • Implement svc update and deactivation functionality

Tests

(TODO: Add acceptance tests for the module)

Appendix

This module is part of the Sonr blockchain project and interacts with other modules such as DID and NFT modules to provide a comprehensive decentralized svc ecosystem.