@tradle/models
Version:
models for tradle apps
79 lines (78 loc) • 1.43 kB
JSON
{
"type": "tradle.Model",
"id": "tradle.PubKey",
"title": "Public Key",
"properties": {
"type": {
"readOnly": true,
"type": "string"
},
"purpose": {
"readOnly": true,
"type": "string"
},
"pub": {
"readOnly": true,
"type": "string"
},
"fingerprint": {
"readOnly": true,
"type": "string"
},
"importedFrom": {
"readOnly": true,
"type": "string"
},
"curve": {
"type": "string",
"description": "curve for EC keys"
},
"networkName": {
"readOnly": true,
"type": "string"
},
"link": {
"type": "string",
"description": "link to latest identity version",
"virtual": true
},
"permalink": {
"type": "string",
"description": "link to original identity",
"virtual": true
}
},
"primaryKeys": {
"hashKey": "pub",
"rangeKey": "_time"
},
"indexes": [
{
"hashKey": "permalink",
"rangeKey": {
"template": "{_time}:{link}"
},
"specificity": 4
},
{
"hashKey": "fingerprint",
"rangeKey": "_time",
"specificity": 3
},
{
"hashKey": "_t",
"rangeKey": "_time",
"specificity": 1
},
{
"hashKey": "importedFrom",
"rangeKey": "_time",
"specificity": 2
}
],
"required": [
"type",
"fingerprint",
"pub"
]
}