Function cashAddressPolynomialToCashAddress

  • Convert a CashAddress polynomial to CashAddress string format.

    Parameters

    • polynomial: number[]

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

    Returns string

    Remarks

    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.

Generated using TypeDoc