UNPKG

velocid

Version:

Revolutionary high-performance distributed ID generator with military-grade security

26 lines 603 B
/** * Fast CRC-4 implementation for ID integrity checking */ export declare class FastCRC4 { private static readonly POLYNOMIAL; private static _table; private table; constructor(); /** * Get or generate CRC lookup table */ private static getTable; /** * Calculate CRC-4 for a 60-bit value */ calculate(data: bigint): number; /** * Verify CRC for a complete 64-bit ID */ verify(id: bigint): boolean; /** * Calculate and attach CRC to payload */ attach(payload: bigint): bigint; } //# sourceMappingURL=crc.d.ts.map