PHP WebShell

Текущая директория: /opt/BitGoJS/modules/abstract-lightning/dist/src/lightning

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

import * as statics from '@bitgo/statics';
import * as utxolib from '@bitgo/utxo-lib';
import { WatchOnly } from '../codecs';
export declare const signerMacaroonPermissions: {
    entity: string;
    action: string;
}[];
export declare const lightningNetworkName: readonly ["bitcoin", "testnet"];
export type LightningNetworkName = (typeof lightningNetworkName)[number];
/**
 * Checks if the coin name is a lightning coin name.
 */
export declare function isLightningCoinName(coinName: unknown): coinName is 'lnbtc' | 'tlnbtc';
/**
 * Get the utxolib network for a lightning network.
 */
export declare function getLightningNetwork(networkName: LightningNetworkName): utxolib.Network;
/**
 * Get the lightning coin name for a utxolib network.
 */
export declare function getLightningCoinName(network: utxolib.Network): string;
/**
 * Checks if the network name is a valid lightning network name.
 */
export declare function isValidLightningNetworkName(networkName: unknown): networkName is LightningNetworkName;
/**
 * Checks if the network is a valid lightning network.
 */
export declare function isValidLightningNetwork(network: unknown): network is utxolib.Network;
/**
 * Returns the statics network data for a lightning coin.
 */
export declare function getStaticsLightningNetwork(coinName: string): statics.LightningNetwork;
/**
 * Returns the utxolib network for a lightning coin.
 */
export declare function getUtxolibNetwork(coinName: string): utxolib.Network;
/**
 * Returns coin specific data for a lightning coin.
 */
export declare function unwrapLightningCoinSpecific<V>(obj: {
    lnbtc: V;
} | {
    tlnbtc: V;
}, coinSpecificPath: string): V;
/**
 * Adds an IP caveat to a macaroon and returns the modified macaroon as a Base64 string.
 */
export declare function addIPCaveatToMacaroon(macaroonBase64: string, ip: string): string;
/**
 * Creates a watch-only wallet init data from the provided signer root key and network.
 */
export declare function createWatchOnly(signerRootKey: string, network: utxolib.Network): WatchOnly;
/**
 * Derives the shared Elliptic Curve Diffie-Hellman (ECDH) secret between the user's auth extended private key
 * and the Lightning service's public key for secure communication.
 */
export declare function deriveLightningServiceSharedSecret(coinName: 'lnbtc' | 'tlnbtc', userAuthXprv: string): Buffer;
//# sourceMappingURL=lightningUtils.d.ts.map

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


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