@btc-vision/bitcoin 6.5.2 → 6.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/address.d.ts +2 -6
- package/browser/bech32utils.d.ts +6 -0
- package/browser/chunks/{crypto-0PweVewC.js → crypto-BhCpKpek.js} +4 -4
- package/browser/chunks/{payments-CgasufRS.js → payments-Ngcm87h_.js} +670 -626
- package/browser/chunks/{psbt-BIwOrKer.js → psbt-CcM4rw3q.js} +1259 -1316
- package/browser/chunks/{script-CROJPzz_.js → script-DyPItFEl.js} +33 -33
- package/browser/chunks/{transaction-DchBu35N.js → transaction-C_UbhMGn.js} +3 -3
- package/browser/chunks/{utils-CO5kmxe9.js → utils-DNZi-T5W.js} +26 -26
- package/browser/index.d.ts +3 -1
- package/browser/index.js +102 -90
- package/browser/payments/embed.d.ts +1 -1
- package/browser/payments/index.d.ts +12 -104
- package/browser/payments/p2ms.d.ts +1 -1
- package/browser/payments/p2op.d.ts +1 -1
- package/browser/payments/p2pk.d.ts +1 -1
- package/browser/payments/p2pkh.d.ts +1 -1
- package/browser/payments/p2sh.d.ts +1 -1
- package/browser/payments/p2tr.d.ts +1 -1
- package/browser/payments/p2wpkh.d.ts +1 -1
- package/browser/payments/p2wsh.d.ts +1 -1
- package/browser/payments/types.d.ts +93 -0
- package/browser/psbt/bip371.d.ts +0 -1
- package/browser/psbt/psbtutils.d.ts +0 -7
- package/browser/pubkey.d.ts +8 -0
- package/browser/script.d.ts +1 -2
- package/browser/script_signature.d.ts +1 -0
- package/browser/types.d.ts +3 -0
- package/build/address.d.ts +2 -6
- package/build/address.js +19 -37
- package/build/bech32utils.d.ts +6 -0
- package/build/bech32utils.js +26 -0
- package/build/index.d.ts +3 -1
- package/build/index.js +1 -0
- package/build/payments/embed.d.ts +1 -1
- package/build/payments/embed.js +1 -1
- package/build/payments/index.d.ts +12 -104
- package/build/payments/index.js +12 -24
- package/build/payments/p2ms.d.ts +1 -1
- package/build/payments/p2ms.js +1 -1
- package/build/payments/p2op.d.ts +1 -1
- package/build/payments/p2op.js +2 -2
- package/build/payments/p2pk.d.ts +1 -1
- package/build/payments/p2pk.js +1 -1
- package/build/payments/p2pkh.d.ts +1 -1
- package/build/payments/p2pkh.js +2 -2
- package/build/payments/p2sh.d.ts +1 -1
- package/build/payments/p2sh.js +1 -1
- package/build/payments/p2tr.d.ts +1 -1
- package/build/payments/p2tr.js +2 -2
- package/build/payments/p2wpkh.d.ts +1 -1
- package/build/payments/p2wpkh.js +1 -1
- package/build/payments/p2wsh.d.ts +1 -1
- package/build/payments/p2wsh.js +2 -2
- package/build/payments/types.d.ts +93 -0
- package/build/payments/types.js +13 -0
- package/build/psbt/bip371.d.ts +0 -1
- package/build/psbt/bip371.js +2 -6
- package/build/psbt/psbtutils.d.ts +0 -7
- package/build/psbt/psbtutils.js +2 -54
- package/build/psbt.js +3 -2
- package/build/pubkey.d.ts +8 -0
- package/build/pubkey.js +56 -0
- package/build/script.d.ts +1 -2
- package/build/script.js +1 -4
- package/build/script_signature.d.ts +1 -0
- package/build/script_signature.js +4 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/types.d.ts +3 -0
- package/package.json +13 -6
- package/src/address.ts +20 -50
- package/src/bech32utils.ts +43 -0
- package/src/index.ts +2 -3
- package/src/payments/embed.ts +2 -2
- package/src/payments/index.ts +40 -164
- package/src/payments/p2ms.ts +2 -2
- package/src/payments/p2op.ts +2 -2
- package/src/payments/p2pk.ts +2 -2
- package/src/payments/p2pkh.ts +3 -3
- package/src/payments/p2sh.ts +2 -10
- package/src/payments/p2tr.ts +2 -2
- package/src/payments/p2wpkh.ts +1 -1
- package/src/payments/p2wsh.ts +8 -2
- package/src/payments/types.ts +154 -0
- package/src/psbt/bip371.ts +6 -13
- package/src/psbt/psbtutils.ts +2 -104
- package/src/psbt.ts +3 -2
- package/src/pubkey.ts +99 -0
- package/src/script.ts +2 -7
- package/src/script_signature.ts +10 -1
- package/src/types.ts +5 -0
- package/test/address.spec.ts +3 -2
- package/test/integration/taproot.spec.ts +2 -1
package/browser/address.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
+
import { fromBech32, Bech32Result } from './bech32utils.js';
|
|
1
2
|
import { Network } from './networks.js';
|
|
3
|
+
export { fromBech32, type Bech32Result };
|
|
2
4
|
export interface Base58CheckResult {
|
|
3
5
|
hash: Buffer;
|
|
4
6
|
version: number;
|
|
5
7
|
}
|
|
6
|
-
export interface Bech32Result {
|
|
7
|
-
version: number;
|
|
8
|
-
prefix: string;
|
|
9
|
-
data: Buffer;
|
|
10
|
-
}
|
|
11
8
|
export declare const FUTURE_SEGWIT_MAX_SIZE: number;
|
|
12
9
|
export declare const FUTURE_SEGWIT_MIN_SIZE: number;
|
|
13
10
|
export declare const FUTURE_SEGWIT_MAX_VERSION: number;
|
|
@@ -19,7 +16,6 @@ export declare const isUnknownSegwitVersion: (output: Buffer) => boolean;
|
|
|
19
16
|
export declare function toFutureOPNetAddress(output: Buffer, network: Network): string;
|
|
20
17
|
export declare function _toFutureSegwitAddress(output: Buffer, network: Network): string;
|
|
21
18
|
export declare function fromBase58Check(address: string): Base58CheckResult;
|
|
22
|
-
export declare function fromBech32(address: string): Bech32Result;
|
|
23
19
|
export declare function toBase58Check(hash: Buffer, version: number): string;
|
|
24
20
|
export declare function toBech32(data: Buffer, version: number, prefix: string, prefixOpnet?: string): string;
|
|
25
21
|
export declare function fromOutputScript(output: Buffer, network?: Network): string;
|
|
@@ -2020,14 +2020,14 @@ const Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2020
2020
|
export {
|
|
2021
2021
|
L as B,
|
|
2022
2022
|
Cr as T,
|
|
2023
|
-
|
|
2023
|
+
Nr as a,
|
|
2024
2024
|
Sr as b,
|
|
2025
2025
|
Dr as c,
|
|
2026
|
-
|
|
2027
|
-
|
|
2026
|
+
Rr as d,
|
|
2027
|
+
$t as e,
|
|
2028
2028
|
Pr as g,
|
|
2029
2029
|
_r as h,
|
|
2030
2030
|
Lr as r,
|
|
2031
|
-
|
|
2031
|
+
Ft as s,
|
|
2032
2032
|
kr as t
|
|
2033
2033
|
};
|