Skip to main content

Function: fingerprint()

fingerprint(source): string

Defined in: Data/Migration/MigrationRunner.ts:310

Content fingerprint of a migration file, stored in the ledger so an edit to an already-applied migration can be detected.

FNV-1a (64-bit, as two 32-bit halves) rather than SHA-256: this detects accidental drift, it is not a security boundary, and a pure-TS implementation keeps @bible/core free of a node:crypto import.

Parameters

source

string

Returns

string