@btc-vision/bitcoin 6.4.11 → 6.5.1

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.
@@ -1 +1 @@
1
- export { createHash, createHmac, pbkdf2Sync, randomBytes } from 'crypto';
1
+ export { createHash, createHmac, pbkdf2Sync, randomBytes } from './crypto-browser.js';
@@ -1,4 +1,4 @@
1
- import { PsbtInput as _PsbtInput, PsbtInputUpdate as _PsbtInputUpdate, PsbtOutput as _PsbtOutput, TapBip32Derivation as _TapBip32Derivation, TapInternalKey as _TapInternalKey, TapKeySig as _TapKeySig, TapLeaf as _TapLeaf, TapLeafScript as _TapLeafScript, TapMerkleRoot as _TapMerkleRoot, TapScriptSig as _TapScriptSig, TapTree as _TapTree } from 'bip174/src/lib/interfaces.js';
1
+ export type { PsbtInput, PsbtInputUpdate, PsbtOutput, TapBip32Derivation, TapInternalKey, TapKeySig, TapLeaf, TapLeafScript, TapMerkleRoot, TapScriptSig, TapTree, } from 'bip174/src/lib/interfaces.js';
2
2
  import * as networks from './networks.js';
3
3
  import * as address from './address.js';
4
4
  import * as payments from './payments/index.js';
@@ -15,38 +15,18 @@ export * from './crypto.js';
15
15
  export * from './psbt.js';
16
16
  export { opcodes } from './opcodes.js';
17
17
  export { Transaction } from './transaction.js';
18
- export { Network } from './networks.js';
18
+ export type { Network } from './networks.js';
19
19
  export { initEccLib } from './ecc_lib.js';
20
- export { Payment, PaymentCreator, PaymentOpts, Stack, StackElement, P2WSHPayment, P2PKPayment, BasePayment, P2SHPayment, P2TRPayment, P2WPKHPayment, P2PKHPayment, P2MSPayment, EmbedPayment, P2OPPayment, P2OPPaymentParams, StackFunction, PaymentType, } from './payments/index.js';
21
- export { Input as TxInput, Output as TxOutput } from './transaction.js';
22
- export interface PsbtInput extends _PsbtInput {
23
- }
24
- export interface PsbtOutput extends _PsbtOutput {
25
- }
26
- export interface TapInternalKey extends _TapInternalKey {
27
- }
28
- export interface TapLeaf extends _TapLeaf {
29
- }
30
- export interface TapScriptSig extends _TapScriptSig {
31
- }
32
- export interface TapKeySig extends _TapKeySig {
33
- }
34
- export interface TapTree extends _TapTree {
35
- }
36
- export interface TapMerkleRoot extends _TapMerkleRoot {
37
- }
38
- export interface TapLeafScript extends _TapLeafScript {
39
- }
40
- export interface TapBip32Derivation extends _TapBip32Derivation {
41
- }
42
- export interface PsbtInputUpdate extends _PsbtInputUpdate {
43
- }
20
+ export { PaymentType } from './payments/index.js';
21
+ export type { Payment, PaymentCreator, PaymentOpts, Stack, StackElement, P2WSHPayment, P2PKPayment, BasePayment, P2SHPayment, P2TRPayment, P2WPKHPayment, P2PKHPayment, P2MSPayment, EmbedPayment, P2OPPayment, P2OPPaymentParams, StackFunction, } from './payments/index.js';
22
+ export type { Input as TxInput, Output as TxOutput } from './transaction.js';
44
23
  export * from './psbt/bip371.js';
45
24
  export * from './address.js';
46
25
  export * from './bufferutils.js';
47
26
  export * from './payments/bip341.js';
48
27
  export * from './psbt/psbtutils.js';
49
- export { Taptree, XOnlyPointAddTweakResult, Tapleaf, TinySecp256k1Interface, TAPLEAF_VERSION_MASK, } from './types.js';
28
+ export { TAPLEAF_VERSION_MASK } from './types.js';
29
+ export type { Taptree, XOnlyPointAddTweakResult, Tapleaf, TinySecp256k1Interface, } from './types.js';
50
30
  declare const bitcoin: {
51
31
  networks: typeof networks;
52
32
  address: typeof address;