/motoko-hex

The Hex Package

Primary LanguageModelicaApache License 2.0Apache-2.0

The Hex Package

Build Status

This package implements hexadecimal encoding and decoding routines for the Motoko programming language.

Prerequisites

Usage

Encode an array of unsigned 8-bit integers in hexadecimal format.

public func encode(array : [Word8]) : Text

Decode an array of unsigned 8-bit integers in hexadecimal format.

public func decode(text : Text) : Result<[Word8], DecodeError>