# @identity.com/did-io-driver-sol

> A SOL driver for the [did.io](https://github.com/digitalbazaar/did-io) DID client.

Latest version **1.0.0-beta.0** (published 2022-01-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @identity.com/did-io-driver-sol
pnpm add @identity.com/did-io-driver-sol
yarn add @identity.com/did-io-driver-sol
bun add @identity.com/did-io-driver-sol
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0-beta.0 |
| Published | 2022-01-14 |
| First published | 2022-01-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=14 |
| Dependencies | 4 |
| Unpacked size | 217.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | dankelleher |
| Maintainers | chriteixeira, buzzec, rado0x54, araptarchis, mitchcivic, identity.com-ci, dankelleher, dmelosantos, flippiescholtz, kevinhcolgan, pbshoemaker, tyronemichael, lucmir, william-identity |

## Links

- npm: https://www.npmjs.com/package/@identity.com/did-io-driver-sol
- npm.io page: https://npm.io/package/@identity.com/did-io-driver-sol

## Dependencies (4)

- [@solana/web3.js](https://npm.io/package/@solana/web3.js.md) ^1.21.0
- [@digitalbazaar/did-io](https://npm.io/package/@digitalbazaar/did-io.md) ^1.1.0
- [@identity.com/sol-did-client](https://npm.io/package/@identity.com/sol-did-client.md) ^1.0.0-beta
- [@digitalbazaar/ed25519-verification-key-2018](https://npm.io/package/@digitalbazaar/ed25519-verification-key-2018.md) ^3.1.1

## Recent versions

- 1.0.0-beta.0 (latest) — 2022-01-14

## README

# DID.io SOL Driver

A SOL driver for the [did.io](https://github.com/digitalbazaar/did-io) DID client.

## Usage

The SOL driver supports the `generate()` and `get()` functions only, and generates
'sparse' DID documents, i.e. those derived from an initial private key with no additional
properties.

To generate a DID:

```js
import { CachedResolver } from '@digitalbazaar/did-io';
import didSol from '@identity.com/did-io-driver-sol';

const resolver = new CachedResolver(); 
resolver.use(didSol.driver({payer: PAYER_KEY}))

// Generate a DID
const did = await resolver.generate({
  method: 'sol',
  cluster: 'devnet'   // omit for mainnet
})
```

where PAYER_KEY is the private key of the transaction payer on solana
and OWNER_KEY is the public key of the owner of the DID,
both encrypted as base58 strings.

---
_Source: https://npm.io/package/@identity.com/did-io-driver-sol · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
