🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

did-op

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

did-op

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

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
3
50%
Maintainers
1
Weekly downloads
 
Created
Source

did-op

npm version Node.js CI

A library to cast ERC20 addresses to Ocean Protocol DIDs

Get Started | Changelog

Installation

$ npm i did-op

Get Started

import { v3 } from "did-op";

console.log(v3.fromDID(""));
// 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.

Keywords

ocean

FAQs

Package last updated on 22 Nov 2021

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