@iota/kerl
Version:
IOTA-related cryptographic methods
25 lines (24 loc) • 450 B
TypeScript
/**
* Converts the given byte array to trits
*
* @method wordsToTrits
*
* @ignore
*
* @param {Uint32Array} words
*
* @return {Int8Array} trits
*/
export declare function wordsToTrits(words: Uint32Array): Int8Array;
/**
* Converts the given trits to byte array
*
* @method tritsToWords
*
* @ignore
*
* @param {Int8Array} trits
*
* @return {Uint32Array} words
*/
export declare function tritsToWords(trits: Int8Array): Uint32Array;