message: fix(hbar): modify validation for keys
  TICKET:BG-30823
diff: @@ -54,10 +54,10 @@ export class KeyPair extends Ed25519KeyPair {
  /** @inheritdoc */
  recordKeysFromPrivateKeyInProtocolFormat(prv: string): DefaultKeys {
  - try {
  - if (prv.length % 2 !== 0) {
  + if (prv.length % 2 !== 0 && /^([a-f0-9]{2})+$/i.test(prv)) {
  throw new InvalidKey('Invalid private key length. Must be a hex and multiple of 2');
  }
  + try {
  const hederaPrv = PrivateKey.fromString(prv);
  const ed25519Prv = removePrefix(PRIVATE_KEY_PREFIX, hederaPrv.toString());
  const ed25519Pub = removePrefix(PUBLIC_KEY_PREFIX, hederaPrv.publicKey.toString());
  