UNPKG

@maverick0351/odin-protocol-js

Version:

JavaScript/TypeScript SDK for ODIN v1.0 state capsule protocol

37 lines 3.98 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.generateCreatorId = exports.isValidCreatorId = exports.bytesToHex = exports.hexToBytes = exports.isValidTimestamp = exports.getCurrentTimestamp = exports.randomBytes = exports.bytesEqual = exports.concatBytes = exports.bytesToString = exports.stringToBytes = exports.bytesToNumber = exports.numberToBytes = exports.blake3Hash = exports.ERROR_MESSAGES = exports.MAX_PAYLOAD_SIZE = exports.HEADER_SIZE = exports.SignatureAlgorithm = exports.CompressionType = exports.EncodingType = exports.CapsuleType = exports.MAGIC_BYTES = exports.ODIN_VERSION = exports.OdinProtocol = void 0; // Export main protocol class and types var odin_1 = require("./odin"); Object.defineProperty(exports, "OdinProtocol", { enumerable: true, get: function () { return odin_1.OdinProtocol; } }); // Export constants and enums var constants_1 = require("./constants"); Object.defineProperty(exports, "ODIN_VERSION", { enumerable: true, get: function () { return constants_1.ODIN_VERSION; } }); Object.defineProperty(exports, "MAGIC_BYTES", { enumerable: true, get: function () { return constants_1.MAGIC_BYTES; } }); Object.defineProperty(exports, "CapsuleType", { enumerable: true, get: function () { return constants_1.CapsuleType; } }); Object.defineProperty(exports, "EncodingType", { enumerable: true, get: function () { return constants_1.EncodingType; } }); Object.defineProperty(exports, "CompressionType", { enumerable: true, get: function () { return constants_1.CompressionType; } }); Object.defineProperty(exports, "SignatureAlgorithm", { enumerable: true, get: function () { return constants_1.SignatureAlgorithm; } }); Object.defineProperty(exports, "HEADER_SIZE", { enumerable: true, get: function () { return constants_1.HEADER_SIZE; } }); Object.defineProperty(exports, "MAX_PAYLOAD_SIZE", { enumerable: true, get: function () { return constants_1.MAX_PAYLOAD_SIZE; } }); Object.defineProperty(exports, "ERROR_MESSAGES", { enumerable: true, get: function () { return constants_1.ERROR_MESSAGES; } }); // Export utility functions var utils_1 = require("./utils"); Object.defineProperty(exports, "blake3Hash", { enumerable: true, get: function () { return utils_1.blake3Hash; } }); Object.defineProperty(exports, "numberToBytes", { enumerable: true, get: function () { return utils_1.numberToBytes; } }); Object.defineProperty(exports, "bytesToNumber", { enumerable: true, get: function () { return utils_1.bytesToNumber; } }); Object.defineProperty(exports, "stringToBytes", { enumerable: true, get: function () { return utils_1.stringToBytes; } }); Object.defineProperty(exports, "bytesToString", { enumerable: true, get: function () { return utils_1.bytesToString; } }); Object.defineProperty(exports, "concatBytes", { enumerable: true, get: function () { return utils_1.concatBytes; } }); Object.defineProperty(exports, "bytesEqual", { enumerable: true, get: function () { return utils_1.bytesEqual; } }); Object.defineProperty(exports, "randomBytes", { enumerable: true, get: function () { return utils_1.randomBytes; } }); Object.defineProperty(exports, "getCurrentTimestamp", { enumerable: true, get: function () { return utils_1.getCurrentTimestamp; } }); Object.defineProperty(exports, "isValidTimestamp", { enumerable: true, get: function () { return utils_1.isValidTimestamp; } }); Object.defineProperty(exports, "hexToBytes", { enumerable: true, get: function () { return utils_1.hexToBytes; } }); Object.defineProperty(exports, "bytesToHex", { enumerable: true, get: function () { return utils_1.bytesToHex; } }); Object.defineProperty(exports, "isValidCreatorId", { enumerable: true, get: function () { return utils_1.isValidCreatorId; } }); Object.defineProperty(exports, "generateCreatorId", { enumerable: true, get: function () { return utils_1.generateCreatorId; } }); // Default export const odin_2 = require("./odin"); exports.default = odin_2.OdinProtocol; //# sourceMappingURL=index.js.map