8 lines
298 B
TypeScript
8 lines
298 B
TypeScript
// Server-specific utility functions
|
|
export const EMPTY32BYTES = String('').padStart(64, '0');
|
|
|
|
export function isValid32ByteHex(value: string): boolean {
|
|
// Check if the value is a valid 32-byte hex string (64 characters)
|
|
const hexRegex = /^[0-9a-fA-F]{64}$/;
|
|
return hexRegex.test(value);
|
|
}
|