UNPKG

@cheqd/sdk

Version:

A TypeScript SDK built with CosmJS to interact with the cheqd network ledger

46 lines 2.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ServiceType = exports.ISignInputs = exports.MethodSpecificIdAlgo = exports.VerificationMethods = exports.CheqdNetwork = void 0; /** Supported Cheqd blockchain networks */ var CheqdNetwork; (function (CheqdNetwork) { /** Production network for live transactions */ CheqdNetwork["Mainnet"] = "mainnet"; /** Test network for development and testing */ CheqdNetwork["Testnet"] = "testnet"; })(CheqdNetwork || (exports.CheqdNetwork = CheqdNetwork = {})); /** Supported verification method types for DID documents */ var VerificationMethods; (function (VerificationMethods) { /** Ed25519 verification key (2020 specification) */ VerificationMethods["Ed255192020"] = "Ed25519VerificationKey2020"; /** Ed25519 verification key (2018 specification) */ VerificationMethods["Ed255192018"] = "Ed25519VerificationKey2018"; /** JSON Web Key (2020 specification) */ VerificationMethods["JWK"] = "JsonWebKey2020"; })(VerificationMethods || (exports.VerificationMethods = VerificationMethods = {})); /** Supported algorithms for generating method-specific identifiers */ var MethodSpecificIdAlgo; (function (MethodSpecificIdAlgo) { /** Base58 Bitcoin encoding */ MethodSpecificIdAlgo["Base58"] = "base58btc"; /** UUID format */ MethodSpecificIdAlgo["Uuid"] = "uuid"; })(MethodSpecificIdAlgo || (exports.MethodSpecificIdAlgo = MethodSpecificIdAlgo = {})); /** * Utility object providing type guard functions for ISignInputs validation. * Contains helper methods to validate and type-check signing input objects. */ exports.ISignInputs = { /** Type guard function to check if an object array contains valid ISignInputs */ isSignInput(object) { return object.some((x) => 'privateKeyHex' in x); }, }; /** Enumeration of supported service types for DID documents */ var ServiceType; (function (ServiceType) { /** Service type for linking domain names to DIDs */ ServiceType["LinkedDomains"] = "LinkedDomains"; })(ServiceType || (exports.ServiceType = ServiceType = {})); //# sourceMappingURL=types.js.map