mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
- **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**
34 lines
1015 B
Protocol Buffer
34 lines
1015 B
Protocol Buffer
syntax = "proto3";
|
|
package dwn.v1;
|
|
|
|
import "cosmos/orm/v1/orm.proto";
|
|
|
|
option go_package = "github.com/onsonr/sonr/x/dwn/types";
|
|
|
|
// https://github.com/cosmos/cosmos-sdk/blob/main/orm/README.md
|
|
|
|
message Credential {
|
|
option (cosmos.orm.v1.table) = {
|
|
id: 1;
|
|
primary_key: { fields: "id" }
|
|
};
|
|
|
|
bytes id = 1; // The credential ID as a byte array
|
|
string kind = 2; // The credential type (e.g. "public-key")
|
|
repeated string transports = 3; // Optional transport hints (usb, nfc, ble, internal)
|
|
bytes public_key = 4; // The credential's public key
|
|
string attestation_type = 5; // The attestation type used (e.g. "none", "indirect", etc)
|
|
uint64 created_at = 6; // Timestamp of when the credential was created
|
|
}
|
|
|
|
message Profile {
|
|
option (cosmos.orm.v1.table) = {
|
|
id: 2;
|
|
primary_key: { fields: "account" }
|
|
index: { id: 1 fields: "amount" }
|
|
};
|
|
|
|
bytes account = 1;
|
|
uint64 amount = 2;
|
|
}
|