Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Uint32
    • Slip10RawIndex

Index

Constructors

  • Parameters

    • input: number

    Returns Slip10RawIndex

Properties

data: number

Methods

  • isHardened(): boolean
  • toBigInt(): bigint
  • Returns bigint

  • toBytesBigEndian(): Uint8Array
  • Returns Uint8Array

  • toBytesLittleEndian(): Uint8Array
  • Returns Uint8Array

  • toNumber(): number
  • Returns number

  • toString(): string
  • Returns string

  • fromBigEndianBytes(bytes: ArrayLike<number>): Uint32
  • deprecated

    use Uint32.fromBytes

    Parameters

    • bytes: ArrayLike<number>

    Returns Uint32

  • fromBytes(bytes: ArrayLike<number>, endianess?: "be" | "le"): Uint32
  • Creates a Uint32 from a fixed length byte array.

    Parameters

    • bytes: ArrayLike<number>

      a list of exactly 4 bytes

    • Optional endianess: "be" | "le"

      defaults to big endian

    Returns Uint32

  • fromString(str: string): Uint32
  • Parameters

    • str: string

    Returns Uint32

Generated using TypeDoc