export const isPrivateKeyValid = ( privateKey ) : boolean => { const isLength = privateKey . length === 66 ; const isHexaPrefix = privateKey . startsWith ( '0x' ) ; return isLength && isHexaPrefix ; } ;