Function cashAddressPolynomialToCashAddress

  • Convert a CashAddress polynomial to CashAddress string format.


    CashAddress polynomials take the form:

    [lowest 5 bits of each prefix character] 0 [payload + checksum]

    This method remaps the 5-bit integers in the prefix location to the matching ASCII lowercase characters, replaces the separator with :, and then Bech32 encodes the remaining payload and checksum.


    • polynomial: readonly number[]

      an array of 5-bit integers representing the terms of a CashAddress polynomial

    Returns string

Generated using TypeDoc