export default class Util { param { Uint8Array } lh param { Uint8Array } rh return { Boolean } static compare ( lh , rh ) { if ( lh . length !== rh . length ) { return false ; } let i ; let d = 0 ; const len = lh . length ; for ( i = 0 ; i < len ; i ++ ) { d |= lh [ i ] ^ rh [ i ] ; } return d === 0 ; } static normalizeUTF8 = ( str ) : string => { return str ? str . normalize ( 'NFKD' ) : '' ; } ; }