Skip to content

nzoghb/motoko-hex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>