UNPKG

originstamp-client-fetch

Version:
51 lines 2.04 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * OriginStamp Timestamping * OriginStamp Timestamping leverages decentralized blockchain technology to create anonymous, tamper-proof timestamps for digital content. This service enables users to timestamp files, emails, or plain text, and store the resulting hashes on the blockchain. Users can also retrieve and verify timestamps that have been committed. The trusted timestamping mechanism ensures that a hash fingerprint can be generated and used as proof that specific data existed at a given point in time. * * The version of the OpenAPI document: 1.0.0 * Contact: support@originstamp.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfTimestampRequest = instanceOfTimestampRequest; exports.TimestampRequestFromJSON = TimestampRequestFromJSON; exports.TimestampRequestFromJSONTyped = TimestampRequestFromJSONTyped; exports.TimestampRequestToJSON = TimestampRequestToJSON; exports.TimestampRequestToJSONTyped = TimestampRequestToJSONTyped; /** * Check if a given object implements the TimestampRequest interface. */ function instanceOfTimestampRequest(value) { if (!('sha256' in value) || value['sha256'] === undefined) return false; return true; } function TimestampRequestFromJSON(json) { return TimestampRequestFromJSONTyped(json, false); } function TimestampRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'sha256': json['sha256'], }; } function TimestampRequestToJSON(json) { return TimestampRequestToJSONTyped(json, false); } function TimestampRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'sha256': value['sha256'], }; } //# sourceMappingURL=TimestampRequest.js.map