@secux/app-btc
Version:
SecuX Hardware Wallet BTC API
56 lines (52 loc) • 1.56 kB
TypeScript
/*!
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.
*/
export interface Network {
messagePrefix: string;
bech32?: string;
bip32: Bip32;
pubKeyHash: number;
scriptHash: number;
wif: number;
coinType: number;
}
export interface Bip32 {
public: number;
private: number;
}
export declare const bitcoin: Network;
export declare const testnet: Network;
export declare const regtest: Network;
export declare const litecoin: Network;
export declare const bitcoincash: Network;
export declare const groestl: Network;
export declare const digibyte: Network;
export declare const dash: Network;
export declare const dogecoin: Network;
export declare const OPCODES: Readonly<{
OP_0: 0;
OP_PUSHDATA1: 76;
OP_PUSHDATA2: 77;
OP_PUSHDATA4: 78;
OP_1NEGATE: 79;
OP_INT_BASE: 80;
OP_DUP: 118;
OP_HASH160: 169;
OP_EQUAL: 135;
OP_EQUALVERIFY: 136;
OP_CODESEPARATOR: 171;
OP_CHECKSIG: 172;
OP_CHECKMULTISIG: 174;
OP_RETURN: 106;
}>;