Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@extrimian/did-core
Advanced tools
This package define general interfaces to work with DID such as DIDDocument, DID Methods, Purposes, Services and Verification Methods.
This package define general interfaces to work with DID such as DIDDocument, DID Methods, Purposes, Services and Verification Methods.
This packages is used by DID Registry and DID Resolver.
It does not add functionality or services but exposes the interfaces that will be used by the rest of the packages
export interface DIDDocument {
"@context": string | string[] | undefined | null;
id: string;
verificationMethod: Array<VerificationMethodPublicKey58 | VerificationMethodGpg | VerificationMethodJwk>;
authentication: Array<string | VerificationMethodPublicKey58 | VerificationMethodGpg | VerificationMethodJwk>;
assertionMethod: Array<string | VerificationMethodPublicKey58 | VerificationMethodGpg | VerificationMethodJwk>;
keyAgreement: Array<string | VerificationMethodPublicKey58 | VerificationMethodGpg | VerificationMethodJwk>;
capabilityDelegation: Array<string | VerificationMethodPublicKey58 | VerificationMethodGpg | VerificationMethodJwk>;
capabilityInvocation: Array<string | VerificationMethodPublicKey58 | VerificationMethodGpg | VerificationMethodJwk>;
service?: Array<Service>
}
export abstract class Purpose {
abstract name: string;
}
export class AuthenticationPurpose extends Purpose {
name = "authentication";
challenge?: string;
public constructor(init?: Partial<AuthenticationPurpose>) {
super();
Object.assign(this, init);
}
}
export class AssertionMethodPurpuse {
name = "assertionMethod";
}
export class CapabilityInvocationPurpose {
name = "capabilityInvocation";
}
export class KeyAgreementPurpose {
name = "keyAgreement";
}
id: string,
type: string,
serviceEndpoint: string | string[] | Record<string, string | string[]>
export interface VerificationMethod {
id: string;
type: string;
controller: string;
}
export interface VerificationMethodPublicKeyHex extends VerificationMethod {
type: VerificationMethodTypes.Ed25519VerificationKey2018 | VerificationMethodTypes.Bls12381G1Key2020 | VerificationMethodTypes.EcdsaSecp256k1VerificationKey2019;
publicKeyHex: string;
}
export interface VerificationMethodPublicKey58 extends VerificationMethod {
type: VerificationMethodTypes.Ed25519VerificationKey2018 | VerificationMethodTypes.Bls12381G1Key2020 | VerificationMethodTypes.EcdsaSecp256k1VerificationKey2019;
publicKeyBase58: string;
}
export interface VerificationMethodGpg extends VerificationMethod {
type: VerificationMethodTypes.GpgVerificationKey2020;
publicKeyGpg: string;
}
export interface VerificationMethodJwk extends VerificationMethod {
type: VerificationMethodTypes.JsonWebKey2020 | VerificationMethodTypes.EcdsaSecp256k1VerificationKey2019;
publicKeyJwk: {
crv: string;
x: string;
y: string;
kty: string;
kid?: string;
};
}
FAQs
This package define general interfaces to work with DID such as DIDDocument, DID Methods, Purposes, Services and Verification Methods.
The npm package @extrimian/did-core receives a total of 17 weekly downloads. As such, @extrimian/did-core popularity was classified as not popular.
We found that @extrimian/did-core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.