mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
refactor: Update Credential table to match WebAuthn Credential Descriptor
This commit is contained in:
parent
e89bbb05b1
commit
7a8707e5d0
@ -10,12 +10,16 @@ option go_package = "github.com/onsonr/sonr/x/dwn/types";
|
|||||||
message Credential {
|
message Credential {
|
||||||
option (cosmos.orm.v1.table) = {
|
option (cosmos.orm.v1.table) = {
|
||||||
id: 1;
|
id: 1;
|
||||||
primary_key: { fields: "account" }
|
primary_key: { fields: "id" }
|
||||||
index: { id: 1 fields: "amount" }
|
index: { id: 1 fields: "type" }
|
||||||
};
|
};
|
||||||
|
|
||||||
bytes account = 1;
|
bytes id = 1; // The credential ID as a byte array
|
||||||
uint64 amount = 2;
|
string type = 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 {
|
message Profile {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user