PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/@cosmjs/proto-signing/build

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

import { Pubkey, SinglePubkey } from "@cosmjs/amino";
import { Any } from "cosmjs-types/google/protobuf/any";
/**
 * Takes a pubkey in the Amino JSON object style (type/value wrapper)
 * and convertes it into a protobuf `Any`.
 *
 * This is the reverse operation to `decodePubkey`.
 */
export declare function encodePubkey(pubkey: Pubkey): Any;
/**
 * Decodes a single pubkey (i.e. not a multisig pubkey) from `Any` into
 * `SinglePubkey`.
 *
 * In most cases you probably want to use `decodePubkey`, but `anyToSinglePubkey`
 * might be preferred in CosmJS 0.29.x due to https://github.com/cosmos/cosmjs/issues/1289.
 */
export declare function anyToSinglePubkey(pubkey: Any): SinglePubkey;
export declare function decodePubkey(pubkey?: Any | null): Pubkey | null;

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


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