@cheqd/sdk
Version:
A TypeScript SDK built with CosmJS to interact with the cheqd network ledger
43 lines • 1.87 kB
JavaScript
/** Supported Cheqd blockchain networks */
export var CheqdNetwork;
(function (CheqdNetwork) {
/** Production network for live transactions */
CheqdNetwork["Mainnet"] = "mainnet";
/** Test network for development and testing */
CheqdNetwork["Testnet"] = "testnet";
})(CheqdNetwork || (CheqdNetwork = {}));
/** Supported verification method types for DID documents */
export 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 || (VerificationMethods = {}));
/** Supported algorithms for generating method-specific identifiers */
export var MethodSpecificIdAlgo;
(function (MethodSpecificIdAlgo) {
/** Base58 Bitcoin encoding */
MethodSpecificIdAlgo["Base58"] = "base58btc";
/** UUID format */
MethodSpecificIdAlgo["Uuid"] = "uuid";
})(MethodSpecificIdAlgo || (MethodSpecificIdAlgo = {}));
/**
* Utility object providing type guard functions for ISignInputs validation.
* Contains helper methods to validate and type-check signing input objects.
*/
export const 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 */
export var ServiceType;
(function (ServiceType) {
/** Service type for linking domain names to DIDs */
ServiceType["LinkedDomains"] = "LinkedDomains";
})(ServiceType || (ServiceType = {}));
//# sourceMappingURL=types.js.map