btcutil-js - v0.2.0
    Preparing search index...

    Variable base58Const

    base58: {
        checkDecode(str: string): Promise<Base58CheckDecodeResult>;
        checkEncode(data: Bytes, version: number): Promise<string>;
        decode(str: string): Promise<Uint8Array<ArrayBufferLike>>;
        encode(data: Bytes): Promise<string>;
    } = ...

    Base58 encoding and decoding (with and without check).

    Type Declaration

    • checkDecode: function
    • checkEncode: function
      • Encode bytes (hex) with a version byte and checksum. Calls Go: base58.CheckEncode() from btcutil/base58.

        Parameters

        • data: Bytes
        • version: number

        Returns Promise<string>

    • decode: function
      • Decode a base58 string to bytes (hex). Calls Go: base58.Decode() from btcutil/base58.

        Parameters

        • str: string

        Returns Promise<Uint8Array<ArrayBufferLike>>

    • encode: function
      • Encode bytes (hex) to a base58 string. Calls Go: base58.Encode() from btcutil/base58.

        Parameters

        Returns Promise<string>