2024-07-05 22:20:13 -04:00
|
|
|
syntax = "proto3";
|
|
|
|
package did.v1;
|
|
|
|
|
|
|
|
import "amino/amino.proto";
|
2024-09-14 14:27:45 -04:00
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
|
|
|
|
option go_package = "github.com/onsonr/sonr/x/did/types";
|
2024-07-05 22:20:13 -04:00
|
|
|
|
|
|
|
// GenesisState defines the module genesis state
|
|
|
|
message GenesisState {
|
2024-08-10 18:27:11 -04:00
|
|
|
// Params defines all the parameters of the module.
|
2024-07-05 22:20:13 -04:00
|
|
|
Params params = 1 [(gogoproto.nullable) = false];
|
|
|
|
}
|
|
|
|
|
|
|
|
// Params defines the set of module parameters.
|
|
|
|
message Params {
|
|
|
|
option (amino.name) = "did/params";
|
|
|
|
option (gogoproto.equal) = true;
|
|
|
|
option (gogoproto.goproto_stringer) = false;
|
|
|
|
|
2024-09-14 14:27:45 -04:00
|
|
|
// Whitelisted Assets
|
2024-07-05 22:20:13 -04:00
|
|
|
|
2024-09-14 14:27:45 -04:00
|
|
|
// Whitelisted Key Types
|
|
|
|
map<string, KeyInfo> allowed_public_keys = 2;
|
|
|
|
|
|
|
|
// ConveyancePreference defines the conveyance preference
|
2024-09-25 19:49:16 -04:00
|
|
|
string conveyance_preference = 3;
|
2024-09-14 14:27:45 -04:00
|
|
|
|
|
|
|
// AttestationFormats defines the attestation formats
|
2024-09-25 19:49:16 -04:00
|
|
|
repeated string attestation_formats = 4;
|
2024-09-14 14:27:45 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// KeyInfo defines information for accepted PubKey types
|
|
|
|
message KeyInfo {
|
2024-09-23 12:25:15 -04:00
|
|
|
string role = 1;
|
|
|
|
string algorithm = 2; // e.g., "ES256", "EdDSA", "ES256K"
|
|
|
|
string encoding = 3; // e.g., "hex", "base64", "multibase"
|
2024-09-25 19:49:16 -04:00
|
|
|
string curve = 4; // e.g., "P256", "P384", "P521", "X25519", "X448",
|
|
|
|
// "Ed25519", "Ed448", "secp256k1"
|
2024-09-14 14:27:45 -04:00
|
|
|
}
|