Skip to main content

Overview

@hyperledger/identus-sdk v8.0.0


@hyperledger/identus-sdk / overview

overview

Namespaces

NamespaceDescription
Connection-
DIDLinkDeclaration merge to group Types
Domain-
PeerDID-
Plugins-
PlutoPluto implementation

Enumerations

EnumerationDescription
JWT_VC_PROPS-
JWT_VP_PROPS-
ListenerKey-
SDJWT_VP_PROPS-
StorageTypeEnumeration of built-in storage types supported by RIDB.
UpdateActionTypeThe kind of mutation an UpdateAction performs on a Prism DID.

Classes

ClassDescription
AgentEdge agent implementation
AgentBackup-
AgentContext-
ApiImplImplement API using built in fetch
ApolloApollo defines the set of cryptographic operations.
BackupManagerBackupManager handle the different versions of backup and restore
BaseRepositoryBaseRepository
CancellableTask-
CastorCastor is a powerful and flexible library for working with DIDs. Whether you are building a decentralised application or a more traditional system requiring secure and private identity management, Castor provides the tools and features you need to easily create, manage, and resolve DIDs.
ConnectionsManagerConnectionsManager is responsible for handling Connections and Mediators
CreatePeerDIDTask class for creating and storing new peer DIDs.
CreatePrismDID-
CreatePrismDIDWithKeysHandle the creation of a PrismDID
CredentialMetadataRepositoryMapperRepository
CredentialRepositoryMapperRepository
DIDCommDIDResolverBridges the SDK's Castor DID resolution to the DIDComm library's DIDResolver interface.
DIDCommSecretsResolverBridges the SDK's key storage (Pluto) to the DIDComm library's SecretsResolver interface.
DIDKeyLinkRepositoryLinkRepository
DIDLinkRepositoryLinkRepository
DIDRepositoryMapperRepository
EventsManagerAn extension for the Edge agent that gives it capability of creating listeners for specific events and also emitting or notifying any listener available with the new event.
ForwardMessage-
FromJWK-
JobManager-
JWT-
JWTCredentialStorable define properties a Domain object must implement to be compatible with Pluto
KeyRepositoryMapperRepository
LinkRepositoryLinkRepository
LinkSecretRepositoryMapperRepository
MapperRepositoryMapperRepository
MercuryMercury is a powerful and flexible library for working with decentralized identifiers and secure communications protocols. Whether you are a developer looking to build a secure and private messaging app or a more complex decentralized system requiring trusted peer-to-peer connections, Mercury provides the tools and features you need to establish, manage, and secure your communications easily.
MessageRepositoryMapperRepository
PeerDID-
PeerDIDMethodDID method implementation for did:peer (algorithm 2).
PeerDIDServiceProvides functionality to transfrom peerDIDServices from our interfaces into DIDComm module ones
PKInstance-
PluginProvide interface to augment the SDK.
PluginManager-
PlutoOrchestration layer for SDK persistence.
PrismDIDMethodDID method implementation for did:prism.
PrismKeyPathIndexTask-
SDJWT-
SDJWTCredentialStorable define properties a Domain object must implement to be compatible with Pluto
SignWithDID-

Interfaces

InterfaceDescription
Args_RequestCredentialJWT-
Args_RequestCredentialSDJWT-
ClaimA single attribute within an Issuance.
CollectionMapMaps every known table name to its corresponding Model interface.
ConnectionDefine the structure of a Connection
CreatePeerDIDArgsArguments for creating a new peer DID
CreatePrismDIDArgs-
CredentialDefinition for Storable Credential model Represents Credential
CredentialMetadataDefinition for CredentialMetadata model Represents CredentialMetadata
CtorConstructor for T
DIDDefinition for DID model Represents DID
DIDCommProtocol-
DIDKeyLinkDefinition for DID -> Key relationships
DIDLinkDefinition for DID -> DID relationships
ForwardMessageBody-
FromJWKArgs-
IArgsRunProtocol exists to bridge the gap between the strong coupling to DIDComm messages and abstracting to Protocols
IBackupTask-
IRestoreTask-
IssuanceModel for credential issuance records.
JWTCredentialPayload-
JWTPresentationPayload-
KeyDefinition for Key model Represents PrivateKey
Logger-
MessageDefinition for Message model Represents Message
PeerDIDEncoded-
PKInstanceArgs-
PrismKeyPathIndexArgsTask to find the latest Prism DID KeyPathIndex
SchemaGeneratorBuilder interface used inside schemaFactory callbacks to declaratively define a Model's schema.
SettingsModel for persisting arbitrary key-value settings.
SignWithDIDArgsAsyncronously sign with a DID

Type Aliases

Type AliasDescription
AddKeyActionDataAdd a new public key to the DID Document.
AddServiceActionDataAdd a new service to the DID Document.
AgentOptions-
Args_CredentialIssue-
Args_CredentialOffer-
Args_Message-
Args_PresentationRequest-
Args_PresentationVerify-
Args_RequestCredential-
Args_RevocationCheck-
Args_Unknown-
ArrayableT is either an Array or a single item
BackupExcludedefine Agent requirements for Backup
BackupOptions-
BaseStorageAbstract base-class for custom storage backends.
CollectionCreateDescriptor for a single RIDB collection.
CollectionListA dictionary of additional (user-defined) collections that can be merged into the default set via makeCollections.
CollectionsTyped map of all RIDB collections as returned by makeCollections.
CollectionSchemasMaps each collection name to its concrete SchemaType.
ConnectionEventArg-
CreateOptionsOptions for creating a Pluto instance via Pluto.create.
CreatePayloadOptions for creating a new Prism DID.
CreatePayloadOfExtract the create payload type from a DID method instance type.
CreatePrismDIDWithKeysArgs-
DeactivatePayloadOptions for deactivating a Prism DID.
DeactivatePayloadOfExtract the deactivate payload type from a DID method instance type. Resolves to never when the method does not support deactivating.
DefaultDIDMethodsTuple of DID methods Castor always registers by default. User-supplied extras are appended to this tuple.
DIDKeysOptional private-key map for DID creation, keyed by usage name. Every usage except MASTER_KEY is optional and holds an array of PrivateKey instances.
DIDMethodCore abstraction for a pluggable DID method.
DIDMethodOperationGeneric wrapper for the return value of lifecycle operations (publish, update, deactivate). By default it resolves to TMetadata itself, but the second type parameter can override the concrete result type.
EventCallback-
EventCallbacks-
JsonObjConstruct a Type with a set of string Keys of type T
LogLevel-
MasterKey-
MessageEventArg-
MetadataSerialised Atala object bytes returned after a publish operation.
MetadataOfExtract the metadata type returned by the lifecycle operations of a DID method instance type. Uses publish as the canonical source.
MethodMapOfBuild a { methodName: MethodInstance } map from a tuple of DID method instances. When multiple entries share the same method name, later entries override earlier ones (so user-supplied extras can replace the built-in prism / peer implementations at the type level).
MethodNameOfExtract the literal method name from a DID method instance type. Falls back to string when the method field is not a string literal.
ModelBase model type shared by every Pluto storable entity.
Nilno value shorthand
NormalizeFlatten intersect to show single interface
OptionalId-
PlutoRepositories-
ProtocolTypeTemporary workaround to smooth transition of internal module splitting and end-user consumables ProtocolType is a merging of all the supported ProtocolIds These have been split internally into Didcomm and OEA modules But we can hide that from our users until full support exists
PublishPayloadOptions for publishing a Prism DID to the ledger.
PublishPayloadOfExtract the publish payload type from a DID method instance type. Resolves to never when the method does not support publishing.
QueryQuery type used by Pluto repositories.
QueryOptions-
QueryType-
RemoveKeyActionDataRemove an existing public key from the DID Document.
RemoveServiceActionDataRemove an existing service from the DID Document.
RequiredPrismDIDSecretKeysKey map that requires a MASTER_KEY entry. Used as the payload for Prism DID creation where a master signing key is mandatory.
RevokeEventArg-
SeedFunction-
StartOptionsOptions passed to createStore controlling how the database starts.
TableNameUnion of all valid table names in the Pluto store.
Task-
TypedSchemaFully-typed RIDB schema derived from a Model interface T.
UpdateActionA single, type-safe DID update action.
UpdatePayloadOptions for updating a Prism DID.
UpdatePayloadOfExtract the update payload type from a DID method instance type. Resolves to never when the method does not support updating.
UpdateServiceActionDataReplace an existing service's type and/or endpoints.
WithId-
WithOptionsStart options for the default RIDB-backed store.
WithStartStart option that delegates database initialisation to a custom function.

Variables

VariableDescription
CredentialMetadataSchema-
CredentialMigration-
CredentialSchema-
DIDKeyLinkSchema-
DIDLinkSchema-
DIDSchema-
IssuanceSchemaRIDB schema for the Issuance model. Version 0 — claims stored as an encrypted array of objects.
KeyMigration-
KeySchema-
MessageMigration-
MessageSchema-
ProtocolType-
SettingsSchemaRIDB schema for the Settings model. Version 0 — all fields required, value encrypted.
Utils-

Functions

FunctionDescription
createStoreCreate a default Pluto.Store backed by RIDB.
makeCollectionsBuild the complete map of Pluto collections.
repositoryFactoryFactory fn to instantiate all Repositories