ENRTree | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ENRTree

Index

Constructors

Properties

BRANCH_PREFIX: "enrtree-branch:" = "enrtree-branch:"
RECORD_PREFIX: "enr:" = ENR.RECORD_PREFIX
ROOT_PREFIX: "enrtree-root:" = "enrtree-root:"
TREE_PREFIX: "enrtree:" = "enrtree:"

Methods

  • 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

  • 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[]

  • 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