Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

aries-framework-oracle 1.0.3-alpha.0

Install from the command line:
Learn more about npm packages
$ npm install @lehigh-oracle-did23/aries-framework-oracle@1.0.3-alpha.0
Install via package.json:
"@lehigh-oracle-did23/aries-framework-oracle": "1.0.3-alpha.0"

About this version

aries-framework-oracle - Aries JavaScript Framework Oracle Verifiable Data Registry Module (Oracle-VDR)

Aries Framework JavaScript Oracle Verifiable Data Registry Module (Oracle-VDR) provides an optional addon to Aries Framework JavaScript to use the Oracle Blockchain Platform (OBP) as the Verifiable Data Registry (VDR).

The Oracle Blockchain Platform is a permissioned blockchain system with enhanced efficiency and streamlined agreements between multiple parties through smart contracts. Based on the open-source Hyperledger Fabric, the system offers a pre-configured platform for executing smart contracts and maintaining a secure ledger.

Features

  • DID Creation: Create decentralized identifiers on the Oracle ledger.
  • DID Resolution: Resolve decentralized identifiers using the Oracle ledger service.
  • DID Update: Update information associated with a decentralized identifier.
  • DID Deactivation: Deactivate a decentralized identifier on the Oracle ledger.

Installation

To install the Oracle Module, use the following command:

yarn install @lehigh-oracle-did23/aries-framework-oracle

Usage

Add the Oracle-VDR Module to your agent:

import { OracleModule, OracleModuleConfig, OracleDidRegistrar, OracleDidResolver, OracleLedgerService } from '@lehigh-oracle-did23/aries-framework-oracle';

const initializeAgent = async () => {
  const config: InitConfig = {
    // ...
  };

  const agent = new Agent({
    config,
    modules: {
      // ...
      dids: new DidsModule({
        registrars: [new OracleDidRegistrar()],
        resolvers: [new OracleDidResolver()],
      }),
      // ...
      oracle: new OracleModule(
        new OracleModuleConfig({
          networkConfig: {
            network: 'your-network',
            channel: 'your-channel',
            chaincode: 'your-chaincode',
            encodedCredential: 'your-encoded-credential',
          },
        })
      ),
      // ...
    },
    dependencies: agentDependencies,
  });

  // Initialize the agent
  await agent.initialize();

  return agent;
};

Details


Assets

  • aries-framework-oracle-1.0.3-alpha.0.tgz

Download activity

  • Total downloads 5
  • Last 30 days 0
  • Last week 0
  • Today 0