Skip to content

ayanworks/credo-ethr-module

Repository files navigation

Credo did:ethr Module

  • did:ethr method registry for credo-ts.

Usage

import { EthereumDidResolver, EthereumDidRegistrar, EthereumModule } from 'credo-ethr-module'

const agent = new Agent({
  config: {
    /* agent config */
  },
  dependencies,
  modules: {
    /* ... */
    dids: new DidsModule({
      resolvers: [ /* ... */, new EthereumDidResolver()],
      registrars: [ /* ... */, new EthereumDidRegistrar()],
    }),
    /* ... */
    ethereum: new EthereumModule({
      rpcUrl: 'rpcUrl' // ethereum rpc url,
      didContractAddress: 'didContractAddress' // ethereum did contract address,
      fileServerToken: 'fileServerToken' // ethereum file server token to store schema json,
      schemaManagerContractAddress: 'schemaManagerContractAddress' // ethereum schema manager contract address,
      serverUrl: 'serverUrl' // ethereum file server url,
    }),
})

About

credo-ethr-module

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •