Trust Registry SDK interaction
Last updated
Last updated
1. Initialize or update Trust Registry
2. Set or update schemas metadata
InitOrUpdateTrustRegistry
Description: Initializes or updates a trust registry with the provided parameters.
Parameter | Type | Description |
---|---|---|
Example:
SetSchemasMetadata
Description: Sets the schemas metadata for a trust registry.
Parameter | Type | Description |
---|---|---|
Example:
SuspendIssuers
Description: Suspends issuers within a trust registry.
Parameter | Type | Description |
---|---|---|
Example:
UnsuspendIssuers
Description: Unsuspends previously suspended issuers within a trust registry.
Parameter | Type | Description |
---|---|---|
Example:
UpdateDelegatedIssuers
Description: Updates delegated issuers within a trust registry.
Parameter | Type | Description |
---|---|---|
Example:
Fetch all Trust Registry identifiers by Verifier:
Request: dock.api.query.trustRegistry.verifiersTrustRegistries(verifierDID)
Response: Returns trust registries where the specified verifier exists.
Fetch all Trust Registry identifiers by Issuer:
Request: dock.api.query.trustRegistry.issuersTrustRegistries(issuerDID)
Response: Returns trust registries where the specified issuer exists.
Request Trust Registry identifiers by Issuers:
Request: dock.trustRegistry.registriesIds({ issuers: { AnyOf: [issuerDID] } })
Response: Returns information about trust registries where the specified issuer exists.
Request Trust Registry identifiers by Issuers or Verifiers:
Request: dock.trustRegistry.registriesIds({ issuersOrVerifiers: { AnyOf: [verifierDID, issuerDID] } })
Response: Returns information about trust registries where the specified issuer or verifier exists.
Request Trust Registry identifiers by schema identifiers:
Request: dock.trustRegistry.registriesIds({ schemaIds: { AnyOf: [schemaId] } })
Response: Returns information about trust registries associated with the specified schema.
Fetch all schema metadata identifiers in the Trust Registry with the supplied id by Verifier:
Request: dock.api.query.trustRegistry.trustRegistryVerifierSchemas(registryID, verifierDID)
Response: Returns trust registries where the specified verifier exists.
Fetch all schema metadata identifiers in the Trust Registry with the supplied id by Issuer:
Request: dock.api.query.trustRegistry.trustRegistryIssuerSchemas(registryID, issuerDID)
Response: Returns trust registries where the specified issuer exists.
Request schema metadata identifiers by Issuers:
Request: dock.trustRegistry.registrySchemaIds({ issuers: { AnyOf: [issuerDID] } }, registryID)
Response: Returns information about trust registries where the specified issuer exists.
Request schema metadata identifiers by Issuers or Verifiers:
Request: dock.trustRegistry.registrySchemaIds({ issuersOrVerifiers: { AnyOf: [verifierDID, issuerDID] } }, registryID)
Response: Returns information about trust registries where the specified issuer or verifier exists.
Request schema metadata identifiers by schema identifiers:
Request: dock.trustRegistry.registrySchemaIds({ schemaIds: { AnyOf: [schemaId] } }, registryID)
Response: Returns information about trust registries associated with the specified schema.
Request Trust Registry information by Verifiers:
Request: dock.trustRegistry.registriesInfo({ verifiers: { AnyOf: [verifierDID] } })
Response: Returns information about trust registries where the specified verifier exists.
Request Trust Registry information by Issuers:
Request: dock.trustRegistry.registriesInfo({ issuers: { AnyOf: [issuerDID] } })
Response: Returns information about trust registries where the specified issuer exists.
Request Trust Registry information by Issuers or Verifiers:
Request: dock.trustRegistry.registriesInfo({ issuersOrVerifiers: { AnyOf: [verifierDID, issuerDID] } })
Response: Returns information about trust registries where the specified issuer or verifier exists.
Request Trust Registry information by schema identifiers:
Request: dock.trustRegistry.registriesInfo({ schemaIds: { AnyOf: [schemaId] } })
Response: Returns information about trust registries associated with the specified schema.
Request Trust Registry schemas metadata by Verifiers:
Request: dock.trustRegistry.registrySchemasMetadata({ verifiers: { AnyOf: [verifierDID] } }, registryId)
Response: Returns metadata for all schemas in the given trust registry where the specified verifier exists.
Request Trust Registry schemas metadata by Issuers:
Request: dock.trustRegistry.registrySchemasMetadata({ issuers: { AnyOf: [issuerDID] } }, registryId)
Response: Returns metadata for all schemas in the given trust registry where the specified issuer exists.
Request Trust Registry schemas metadata by Issuers or Verifiers:
Request: dock.trustRegistry.registrySchemasMetadata({ issuersOrVerifiers: { AnyOf: [verifierDID, issuerDID] } }, registryId)
Response: Returns metadata for all schemas in the given trust registry where the specified issuer or verifier exists.
Request Trust Registry schemas metadata by schema identifiers:
Request: dock.trustRegistry.registrySchemasMetadata({ schemaIds: { AnyOf: [schemaId] } }, registryId)
Response: Returns metadata for schemas with supplied identifiers.
registryId
TrustRegistryId
Identifier for the trust registry.
name
String
Name of the trust registry.
govFramework
Bytes
Government framework associated with the trust registry.
nonce
u32
Nonce of the caller DID.
registryId
TrustRegistryId
Identifier for the trust registry.
schemas
UnboundedSchemasUpdate
Schemas to be updated.
nonce
u32
Nonce of the caller DID.
registryId
TrustRegistryId
Identifier for the trust registry.
issuers
BTreeSet
Set of issuers to be suspended.
nonce
u32
Nonce of the caller DID.
registryId
TrustRegistryId
Identifier for the trust registry.
issuers
BTreeSet
Set of issuers to be unsuspended.
nonce
u32
Nonce of the caller DID.
registryId
TrustRegistryId
Identifier for the trust registry.
delegated
UnboundedDelegatedUpdate
Delegated issuers to be updated.
nonce
u32
Nonce of the caller DID.