@symbioticfi/relay-stats-ts
Version:
TypeScript library for deriving validator sets from Symbiotic network contracts
18 lines • 589 B
JavaScript
// Key type definitions
export var KeyType;
(function (KeyType) {
KeyType[KeyType["KeyTypeBlsBn254"] = 0] = "KeyTypeBlsBn254";
KeyType[KeyType["KeyTypeEcdsaSecp256k1"] = 1] = "KeyTypeEcdsaSecp256k1";
KeyType[KeyType["KeyTypeInvalid"] = 255] = "KeyTypeInvalid";
})(KeyType || (KeyType = {}));
export function getKeyType(tag) {
switch (tag >> 4) {
case 0:
return KeyType.KeyTypeBlsBn254;
case 1:
return KeyType.KeyTypeEcdsaSecp256k1;
default:
return KeyType.KeyTypeInvalid;
}
}
//# sourceMappingURL=types.js.map