Observed since 20 Oct, 19:46 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Generate 3IDs and signers for testing
A library to generate DIDs and sign Json Web Tokens (JWTs). This library is meant for running tests so that you do not need to log in to your wallet, connect to 3box and then sign JWTs.
Using npm:
$ npm install 3id-test-helper
Create the class
const DidHelper = require('3id-test-helper')
const IPFS = require('ipfs')
const ipfs = await IPFS.create()
const testHelper = new DidHelper(ipfs)
Generate DIDs
const accounts = await testHelper.generateAccounts()
When you generate accounts, you create random Ethereum private keys which are used to generate your DIDs.
You can get those private keys and hardcode them in your tests so you can reuse the same DIDs.
const privateKeys = testHelper.getPrivateKeys()
const reusedDIDs = testHelper.generateAccounts(privateKeys)
Signing Json Web Tokens (JWTs)
Important: The did you pass in must have been generated by the class. When the class generates the DIDs, it creates a signer for JWTs.
const jwt = await testHelper.createJWTFromDID(did, payload)
Download counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Shared repository data · GitHub
Observed since 20 Oct, 19:46 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:d42d9cdd6b87fb573d8fe1cfb2b862d2f45efa3b6bb314f822edd69d85bb23ce