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

ceramicnetwork/key-did-provider-secp256k1

Repository files navigation

secp256k1 key did provider

Still work in progress.

Usage

import { Secp256k1Provider } from 'key-did-provider-secp256k1'
import { DID } from 'dids'

const secretKey = new Uint8Array(...) //  32 bytes with high entropy
const provider = new Secp256k1Provider(secretKey)
const did = new DID({ provider })
await did.authenticate()

const { jws, linkedBlock } = did.createDagJWS({ hello: 'world' })

License

Apache-2.0 OR MIT

About

No description, website, or topics provided.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published