
Research
/Security News
Shai Hulud Strikes Again (v2)
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.
@mattrglobal/cose
Advanced tools
This repository is home to an incomplete implementation of RFC 8152 written in Typescript.
This project uses a Git submodule from the repository at github.com/cose-wg/Examples.git. That repository contains test cases. So you will need to pull them down for tests to run. To activate the submodule, run the following:
git submodule init
git submodule update
The following algorithms are supported for COSE_Sign1
| Signing Algorithm | Description |
|---|---|
| ES256 | Elliptic Curve Digital Signature Algorithm using the P-256/brainpoolP256r1 curve with SHA-256 |
| ES384 | Elliptic Curve Digital Signature Algorithm using the P-384/brainpoolP384r1 curve with SHA-384 |
| ES512 | Elliptic Curve Digital Signature Algorithm using the P-512/brainpoolP512r1 curve with SHA-512 |
| EdDSA | Elliptic Curve Digital Signature Algorithm using the Ed25519/Ed448 curve with SHA-512 |
Versions <= 4.x use the cbor package to CBOR encode which has different mappings from the cbor2 package.
⚠️ Breaking Changes in v5.x
Versions >= 5.x use the cbor2 package to encode. Since this library does not Tag
some of the values as per RFC-8746, a tagValue utility function is
provided.
See here for licence information
FAQs
An implementation of RFC8152
The npm package @mattrglobal/cose receives a total of 1,418 weekly downloads. As such, @mattrglobal/cose popularity was classified as popular.
We found that @mattrglobal/cose demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.

Research
/Security News
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.