Skip to main content
Glama
encoding.d.ts1.3 kB
import { Ed25519Pubkey, Pubkey, Secp256k1Pubkey } from "./pubkeys"; /** * Takes a Secp256k1 public key as raw bytes and returns the Amino JSON * representation of it (the type/value wrapper object). */ export declare function encodeSecp256k1Pubkey(pubkey: Uint8Array): Secp256k1Pubkey; /** * Takes an Edd25519 public key as raw bytes and returns the Amino JSON * representation of it (the type/value wrapper object). */ export declare function encodeEd25519Pubkey(pubkey: Uint8Array): Ed25519Pubkey; /** * Decodes a pubkey in the Amino binary format to a type/value object. */ export declare function decodeAminoPubkey(data: Uint8Array): Pubkey; /** * Decodes a bech32 pubkey to Amino binary, which is then decoded to a type/value object. * The bech32 prefix is ignored and discareded. * * @param bechEncoded the bech32 encoded pubkey */ export declare function decodeBech32Pubkey(bechEncoded: string): Pubkey; /** * Encodes a public key to binary Amino. */ export declare function encodeAminoPubkey(pubkey: Pubkey): Uint8Array; /** * Encodes a public key to binary Amino and then to bech32. * * @param pubkey the public key to encode * @param prefix the bech32 prefix (human readable part) */ export declare function encodeBech32Pubkey(pubkey: Pubkey, prefix: string): string;

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