ByronBecker / motoko-hex

The Hex Package

Home Page:https://sdk.dfinity.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Hex Package

Build Status

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

Prerequisites

  • DFINITY SDK
  • Vessel

Usage

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

public func encode(array : [Nat8], characterCasing: { #upper; #lower }) : Text

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

public func decode(text : Text, characterCasing: { #upper; #lower }) : Result<[Nat8], DecodeError> 

About

The Hex Package

https://sdk.dfinity.org

License:Apache License 2.0


Languages

Language:Motoko 85.5%Language:Makefile 9.7%Language:Dhall 4.8%