UNPKG

@secux/utility

Version:

SecuX Hardware Wallet internal tools for SDK

87 lines (83 loc) 3.18 kB
/*! Copyright 2022 SecuX Technology Inc Copyright Chen Wei-En Copyright Wu Tsung-Yu Licensed under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /// <reference types="node" /> /// <reference types="node" /> export { buildPathBuffer, decodePathBuffer, splitPath } from "./BIP32Path"; export { toExtenededPublicKey } from "./xpub"; export { Signature } from "./signature"; export declare const Logger: any; export declare class owTool { static get bip32String(): import("ow").StringPredicate; static get hexString(): import("ow").StringPredicate; static get prefixedhexString(): import("ow").StringPredicate; static get hashString(): import("ow").StringPredicate; static get numberString(): import("ow").StringPredicate; static get xpubString(): import("ow").StringPredicate; static get base58String(): import("ow").StringPredicate; static get base64String(): import("ow").StringPredicate; } /** * @deprecated */ export declare const ow_bip32String: import("ow").StringPredicate; /** * @deprecated */ export declare const ow_hexString: import("ow").StringPredicate; /** * @deprecated */ export declare const ow_prefixedhexString: import("ow").StringPredicate; /** * @deprecated */ export declare const ow_hashString: import("ow").StringPredicate; /** * @deprecated */ export declare const ow_numberString: import("ow").StringPredicate; /** * @deprecated */ export declare const ow_xpubString: import("ow").StringPredicate; /** * @deprecated */ export declare const ow_base58String: import("ow").StringPredicate; export declare function ow_strictPath(coinType: number | Array<number>, purpose?: number | Array<number>): import("ow").StringPredicate; export declare function ow_accountPath(coinType: number | Array<number>, purpose?: number | Array<number>): import("ow").StringPredicate; export declare function ow_checkBufferLength(length: number): import("ow").Predicate<Buffer>; export declare function BigIntToBuffer(value: number | string, bufferlen: number, isLE?: boolean): Buffer; export declare const supported_coin: readonly { purpose: number[]; cointype: number; name: string; module: string; npm: string; }[]; export declare function isSupportedCoin(path: string): boolean; export declare function loadPlugin(plugin: Function, name: string): void; export declare enum FirmwareType { mcu = "mcu", se = "se" } export declare class FirmwareError extends Error { #private; constructor(type: string, restrict: string, current: string); get type(): FirmwareType; get currentVersion(): string; get restrictVersion(): string; } export declare function checkFWVersion(type: string, restrict: string, current: string): void;