Skip to content

Base32.fromBytes

Encodes a Bytes.Bytes value to a Base32-encoded string (using the BIP-173 bech32 alphabet).

Imports

Named
import { Base32 } from 'ox'

Examples

import { Base32, Bytes } from 'ox'
 
const value = Base32.fromBytes(new Uint8Array([0x00, 0xff, 0x00]))

Definition

function fromBytes(
  value: Bytes.Bytes,
): string

Source: src/core/Base32.ts

Parameters

value

  • Type: Bytes.Bytes

The byte array to encode.

Return Type

The Base32 encoded string.

string