Skip to content

TheoXD/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

Languages

  • TypeScript 88.4%
  • JavaScript 11.6%