UNPKG

iota-ternary

Version:

Fast utility functions for conversion between trytes, trits and bytes

8 lines (5 loc) 209 B
import { numberToTrits } from '../number-to-trits' import { tritsToTrytes } from '../trits-to-trytes' export function numberToTrytes(number: number): string { return tritsToTrytes(numberToTrits(number)) }