Documentation
    Preparing search index...

    did:key Method

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    code: 231 | 237 | 4608 | 4609 | 4610 | 4613
    did: DID

    DID String - top level DID

    "did:web:example.com"
    
    didObject: DIDURLObject

    DID URL Object

    didUrl: DIDURL

    DID URL string

    "did:web:example.com#fragment1?query=value"
    
    fragment: undefined | string
    id: string
    method: string
    path: undefined | string
    publicKey: Uint8Array<ArrayBuffer>
    query: undefined | string
    type: "Ed25519" | "RSA" | "P-256" | "P-384" | "P-521" | "secp256k1"
    verifiableDid: DIDKey

    Verifiable DID - resolved from the did

    Accessors

    Methods

    • Create a DIDKey from a public key bytes

      Parameters

      • type: KeyType
      • key: Uint8Array<ArrayBuffer>

      Returns DIDKey

    • Create a DIDKey from a DID string

      Parameters

      • didString: string

      Returns DIDKey