Name of the model file
SHA256 hash of the model
// Add hash for a new model
setModelHash('my-custom-model.onnx', 'abc123...');
// Update hash for existing model
setModelHash('u2net.onnx', 'new-hash-value');
// Verify the model with the new hash
const isValid = await verifyModelIntegrity('my-custom-model.onnx', modelData);
Add or update the SHA256 hash for a model.
Sets the expected hash for a model, which will be used for integrity verification. This is useful for adding support for new models or updating hashes when models are updated.