Skip to main content
Glama
pubkeys.js1.47 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isMultisigThresholdPubkey = exports.isSinglePubkey = exports.pubkeyType = exports.isSecp256k1Pubkey = exports.isEd25519Pubkey = void 0; function isEd25519Pubkey(pubkey) { return pubkey.type === "tendermint/PubKeyEd25519"; } exports.isEd25519Pubkey = isEd25519Pubkey; function isSecp256k1Pubkey(pubkey) { return pubkey.type === "tendermint/PubKeySecp256k1"; } exports.isSecp256k1Pubkey = isSecp256k1Pubkey; exports.pubkeyType = { /** @see https://github.com/tendermint/tendermint/blob/v0.33.0/crypto/ed25519/ed25519.go#L22 */ secp256k1: "tendermint/PubKeySecp256k1", /** @see https://github.com/tendermint/tendermint/blob/v0.33.0/crypto/secp256k1/secp256k1.go#L23 */ ed25519: "tendermint/PubKeyEd25519", /** @see https://github.com/tendermint/tendermint/blob/v0.33.0/crypto/sr25519/codec.go#L12 */ sr25519: "tendermint/PubKeySr25519", multisigThreshold: "tendermint/PubKeyMultisigThreshold", }; function isSinglePubkey(pubkey) { const singPubkeyTypes = [exports.pubkeyType.ed25519, exports.pubkeyType.secp256k1, exports.pubkeyType.sr25519]; return singPubkeyTypes.includes(pubkey.type); } exports.isSinglePubkey = isSinglePubkey; function isMultisigThresholdPubkey(pubkey) { return pubkey.type === "tendermint/PubKeyMultisigThreshold"; } exports.isMultisigThresholdPubkey = isMultisigThresholdPubkey; //# sourceMappingURL=pubkeys.js.map

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MyronKoch-dev/osmosis-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server