Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 642 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 642 Bytes

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>