UNPKG

mcard-js

Version:

MCard - Content-addressable storage with cryptographic hashing, handle resolution, and vector search for Node.js and browsers

27 lines (25 loc) 718 B
// src/model/constants.ts var EVENT_CONSTANTS = { TYPE: "type", HASH: "hash", FIRST_G_TIME: "first_g_time", CONTENT_SIZE: "content_size", COLLISION_TIME: "collision_time", UPGRADED_FUNCTION: "upgraded_function", UPGRADED_HASH: "upgraded_hash", DUPLICATE_TIME: "duplicate_time", DUPLICATE_EVENT_TYPE: "duplicate", COLLISION_EVENT_TYPE: "collision" }; var ALGORITHM_HIERARCHY = { "sha1": { strength: 1, next: "sha224" }, "sha224": { strength: 2, next: "sha256" }, "sha256": { strength: 3, next: "sha384" }, "sha384": { strength: 4, next: "sha512" }, "sha512": { strength: 5, next: "custom" }, "custom": { strength: 6, next: null } }; export { EVENT_CONSTANTS, ALGORITHM_HIERARCHY };