
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
@identity.com/dids
Advanced tools
This library is a simple client library for generating DIDs for use with Solana applications.
This library is a simple client library for generating DIDs for use with Solana applications.
It supports two DID methods:
To register a DID from a Solana public key:
const DIDs = require('@identity.com/dids');
const dids = new DIDs({ payer: payerAccount.secretKey });
const owner = new Account().publicKey;
const keyIdentifier = await dids.register('key', owner);
const solIdentifier = await dids.register('sol', owner);
To retrieve a DID document:
const identifier = 'did:key:z6MkszyYuyjZ31XZKXT4qdb5HqsWjAZGZoVvGzsoX1Tnno9s';
const document = await dids.get(identifier);
For more examples, see tests/index.test.ts
Note: Before contributing to this project, please check out the code of conduct and contributing guidelines.
nvm i
yarn
DIDS uses the mocha and chai test libraries
Run the tests using:
yarn test
Note: DIDS was bootstrapped and is packaged using TSDX, which includes Jest. Jest has a bug when importing some dependencies of this project, so mocha is used instead.
To test using the repl, run
yarn repl
Then try:
await dids.register('sol', new Account().publicKey)
await dids.register('key', new Account().publicKey)
await dids.get('<YOUR IDENTIFIER HERE>')
FAQs
This library is a simple client library for generating DIDs for use with Solana applications.
We found that @identity.com/dids demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

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.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.