did:key Method

Hierarchy (View Summary)

Constructors

Properties

alg: "EdDSA" | "ES256" | "ES384" | "ES512" | "ES256K" | "RS256"
code: 231 | 237 | 4608 | 4609 | 4610 | 4613
did: `did:${string}:${string}`
didKey: `did:${string}:${string}`
didUrl: string
fragment: undefined | string
id: string
method: string
path: undefined | string
publicKey: Uint8Array<ArrayBufferLike>
query: undefined | string
type: "Ed25519" | "P-256" | "P-384" | "P-521" | "secp256k1" | "RSA"

Accessors

Methods

  • Create a DIDKey from a public key bytes

    Parameters

    • type: "Ed25519" | "P-256" | "P-384" | "P-521" | "secp256k1" | "RSA"
    • key: BufferSource

    Returns DIDKey