PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@cosmjs/amino/build

Просмотр файла: encoding.d.ts

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;

Выполнить команду


Для локальной разработки. Не используйте в интернете!