Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ENRTree

Index

Constructors

constructor

Properties

Static Readonly BRANCH_PREFIX

BRANCH_PREFIX: "enrtree-branch:" = 'enrtree-branch:'

Static Readonly RECORD_PREFIX

RECORD_PREFIX: "enr:" = ENR.RECORD_PREFIX

Static Readonly ROOT_PREFIX

ROOT_PREFIX: "enrtree-root:" = 'enrtree-root:'

Static Readonly TREE_PREFIX

TREE_PREFIX: "enrtree:" = 'enrtree:'

Methods

Static parseAndVerifyRoot

  • parseAndVerifyRoot(root: string, publicKey: string): string
  • Extracts the branch subdomain referenced by a DNS tree root string after verifying the root record signature with its base32 compressed public key.

    Parameters

    • root: string
    • publicKey: string

    Returns string

Static parseBranch

  • parseBranch(branch: string): string[]
  • Returns subdomains listed in an ENR branch entry. These in turn lead to either further branch entries or ENR records.

    Parameters

    • branch: string

    Returns string[]

Static parseRootValues

Static parseTree

  • Returns the public key and top level domain of an ENR tree entry. The domain is the starting point for traversing a set of linked DNS TXT records and the public key is used to verify the root entry record

    Parameters

    • tree: string

    Returns ENRTreeValues

Generated using TypeDoc