• Convert the given DID string to a public key.

    Parameters

    • did: `did:key:z${string}`
    • hashAlgorithm: HashAlg = DEFAULT_HASH_ALGORITHM
    • use: KeyUse = KeyUse.Sign

    Returns Promise<PublicKey>