iota-ternary
Version:
Fast utility functions for conversion between trytes, trits and bytes
5 lines (4 loc) • 305 B
TypeScript
export declare type trit = (-1 | 0 | 1);
export declare type tryte = ("9" | "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z");
export declare type trits = trit[];
export declare type trytes = string;