• Traverses a delegation tree and counts the number of delegation nodes between an attestation and an ancestral delegation node owned by attester.

    Parameters

    • attester: Did

      Identity to be located in the delegation tree.

    • attestation: IAttestation

      Attestation whose delegation tree to search.

    Returns Promise<number>

    0 if attester is the owner of attestation, the number of delegation nodes traversed otherwise.