
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
@proofmeid/webrtc-node
Advanced tools
This package allows easy usage of the WebRTC part as of a lot of utilty functions to check credentials and validity of those
import { ICredentialObject, IRequestedCredentials, IValidatedCredentials, ProofmeUtils } from "@proofmeid/webrtc-node";
Below an example of how to pass the credentials and validate them.
const credentialObject: ICredentialObject = req.body.credentials;
if (credentialObject) {
const requestedData: IRequestedCredentials = {
by: "Proofme",
description: "full identification",
credentials: [
{ key: "PHOTO", provider: "EPASS", required: true },
{ key: "FIRST_NAME", provider: "EPASS", required: true },
{ key: "LAST_NAME", provider: "EPASS", required: true },
{ key: "BIRTH_DATE", provider: "EPASS", required: true },
{ key: "GENDER", provider: "EPASS", required: true },
{ key: "NATIONALITY", provider: "EPASS", required: true },
{ key: "DOCUMENT_NUMBER", provider: "EPASS", required: true },
{ key: "DOCUMENT_EXPIRY_DATE", provider: "EPASS", required: true },
{ key: "DOCUMENT_TYPE", provider: "EPASS", required: true }
]
};
const proofmeUtils = new ProofmeUtils();
const validatedCredentials = await proofmeUtils.validCredentialsTrustedPartiesFunc(credentialObject, config.web3Url, requestedData, config.trustedDids as string[], true, true) as IValidatedCredentials;
if (validatedCredentials.valid) {
// Do stuff with the credentials as you like
res.status(200).send({ message: "SUCCESS.VALID_CREDENTIALS", success: true });
} else {
res.status(200).send({ message: "ERROR.INVALID_CREDENTIALS", success: false });
}
} else {
res.status(400).send({ error: "ERROR.MISSING_CREDENTIAL_OBJECT" });
}
Please note that the 'requestedData' object has to match the 'requestedData' in the frontend. We should check the exact same thing that has been asked to the customer.
The 'ProofmeUtils' class contains a function to validate the credentials, which will return a valid 'true' or valid 'false'.
FAQs
WebRTC + Signaling Server
The npm package @proofmeid/webrtc-node receives a total of 368 weekly downloads. As such, @proofmeid/webrtc-node popularity was classified as not popular.
We found that @proofmeid/webrtc-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.