🚀 DAY 4 OF LAUNCH WEEK:Introducing Socket Scanning for OpenVSX Extensions.Learn more
Socket
Book a DemoInstallSign in
Socket

@sphereon/did-provider-oyd

Package Overview
Dependencies
Maintainers
4
Versions
512
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sphereon/did-provider-oyd

OwnYourData plugin that can enable creation and control of did:oyd identifiers.

latest
npmnpm
Version
0.36.0
Version published
Maintainers
4
Created
Source

did:oyd Provider

This package contains an implementation of the AbstractIdentifierProvider for the did:oyd method. Enabling creating and resolving of did:oyd entities, conforming to the spec for OYDID

Available functions

  • createIdentifier
  • resolveDidOyd

Usage

Creating an identifier

The most simple version of creating a did:oyd is without any input parameters:

const identifier: IIdentifier = await agent.didManagerCreate()

Use the following options to create a did:oyd using Client-Managed-Secret-Mode:

const DID_METHOD = 'did:oyd'
const oydDIDProvider = new OydDIDProvider({
  defaultKms: 'mem',
  clientManagedSecretMode: {
    publicKeyCallback: some_function, // callback to provide public Key
    signCallback: some_function, // callback for signing payload
  },
})

const agent = createAgent<IKeyManager, DIDManager>({
  plugins: [
    new SphereonKeyManager({
      store: new MemoryKeyStore(),
      kms: {
        mem: new SphereonKeyManagementSystem(new MemoryPrivateKeyStore()),
      },
    }),
    new DIDManager({
      providers: {
        [DID_METHOD]: oydDIDProvider,
      },
      defaultProvider: DID_METHOD,
      store: new MemoryDIDStore(),
    }),
  ],
})

const identifier: IIdentifier = await agent.didManagerCreate()

Resolving a DID

The example below resolves a did:oyd to DIDResolutionResult.

const didResolutionResult: DIDResolutionResult = await agent.resolveDid({ didUrl: 'did:oyd:zQm...' })

Installation

yarn add @sphereon/ssi-sdk-ext.did-provider-oyd

Build

yarn build

REST API Endpoints for did:oyd

For managing did:oyd DIDs (create, update, delete), refer to the following page, which provides detailed information on the available REST API endpoints: https://github.com/OwnYourData/oydid/tree/main/uni-registrar-driver-did-oyd

FAQs

Package last updated on 19 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts