Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

rugpullindex/did-op

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

did-op

npm version Node.js CI

Utility to convert identifiers from Ocean Protocol DIDs to e.g. ERC20 addresses and vice versa

Get Started | Changelog

Installation

$ npm i did-op

Get Started

import { v3 } from "did-op";

console.log(v3.fromDID("did:op:7Bce67697eD2858d0683c631DdE7Af823b7eea38"));
// 0x7bce67697ed2858d0683c631dde7af823b7eea38

console.log(v3.toDID("0x7bce67697ed2858d0683c631dde7af823b7eea38"));
// did:op:7Bce67697eD2858d0683c631DdE7Af823b7eea38

Contributing

We love contributions from the community. Find a good first issue.

Want to suggest a feature or even better raise a PR for it? Head over to the issues section or join our discord.

You can also get paid for a PR. For more information read our handbook.

Changelog

The changelog is avaliable at CHANGELOG.md.

License

See License.

About

Utility to convert identifiers from Ocean Protocol DIDs to e.g. ERC20 addresses and vice versa

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published