Skip to content

Commit

Permalink
updated traits
Browse files Browse the repository at this point in the history
Signed-off-by: Sownak Roy <[email protected]>
  • Loading branch information
sownak committed Dec 13, 2024
1 parent e236c5f commit d930c19
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import swaggerDocument from './static/swagger.json' with { type: 'json' };
import { DidController } from './controllers/did.js';
import { CheqdController } from './controllers/cheqd.js';
import { ResourceController } from './controllers/resource.js';
import { CheqdRegistrar } from './service/cheqd.js';
import { CheqdRegistrar, DefaultResolverUrl, DefaultRPCUrl } from './service/cheqd.js';
import { MethodSpecificIdAlgo, VerificationMethods } from '@cheqd/sdk';

class App {
Expand All @@ -31,13 +31,28 @@ class App {
const app = this.express;
const URL_PREFIX = '/1.0';
const staticTraits = {
cheqd: {
updatable: true,
deactivatable: true,
enumerable: true,
historyAvailable: true,
humanReadable: false,
},
name: 'cheqd',
updateable: true,
updateableServiceEndpoints: true,
deactivatable: true,
deletable: false,
transactionalFees: true,
selfCertifying: true,
updateableVerificationMethods: true,
prerotationOfKeys: false,
multisigVerificationMethod: false,
humanreadable: false,
enumerable: true,
resolvableLocally: false,
resolvableGlobally: true,
history: true,
historySigned: true,
hostingNotRequired: false,
hostedCentrally: false,
hostedDecentrally: true,
cryptographyPrivacyPreserving: false,
cryptographyGovernmentApproved: false,
dataProtectionCompliant: false,
};
const properties = {
cheqd: {
Expand All @@ -48,6 +63,8 @@ class App {
],
supportedAlgorithm: [MethodSpecificIdAlgo.Base58, MethodSpecificIdAlgo.Uuid],
localStoreTTL: process.env.LOCAL_STORE_TTL,
rpcUrl: DefaultRPCUrl.Mainnet,
resolverUrl: DefaultResolverUrl.Cheqd,
},
};
const didMethods = ['cheqd'];
Expand Down

0 comments on commit d930c19

Please sign in to comment.