Skip to content

Commit 2a8f83f

Browse files
authored
Merge pull request #2192 from Odysseus130/master
Rewrite network and payment comments
2 parents 19d8f72 + 1b258e9 commit 2a8f83f

File tree

6 files changed

+34
-15
lines changed

6 files changed

+34
-15
lines changed

src/cjs/networks.cjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
'use strict';
2-
// https://en.bitcoin.it/wiki/List_of_address_prefixes
3-
// Dogecoin BIP32 is a proposed standard: https://bitcointalk.org/index.php?topic=409731
42
Object.defineProperty(exports, '__esModule', { value: true });
53
exports.testnet = exports.regtest = exports.bitcoin = void 0;
64
/**

src/cjs/networks.d.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
/**
2-
* Represents a Bitcoin network configuration,including messagePrefix, bech32, bip32, pubKeyHash, scriptHash, wif.
3-
* Support bitcoin、bitcoin testnet and bitcoin regtest.
2+
* This module defines the network configurations for Bitcoin and its variants, including message prefixes,
3+
* Bech32 address format, BIP32 key derivation prefixes, and other address-related configurations.
4+
* It supports Bitcoin, Bitcoin testnet, and Bitcoin regtest networks.
5+
*
6+
* Additional information on address prefixes can be found here:
7+
* - https://en.bitcoin.it/wiki/List_of_address_prefixes
8+
*
49
* @packageDocumentation
510
*/
611
export interface Network {

src/cjs/payments/index.d.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
/**
2-
* Represents a payment object, which is used to create a payment.
2+
* Provides functionality for creating and managing Bitcoin payment objects.
33
*
4-
* Supports P2PKH、P2SH、P2WPKH、P2WSH、P2TR and so on
4+
* This module supports multiple Bitcoin address types for payments, including:
5+
* - P2PKH (Pay-to-PubKey-Hash)
6+
* - P2SH (Pay-to-Script-Hash)
7+
* - P2WPKH (Pay-to-Witness-PubKey-Hash)
8+
* - P2WSH (Pay-to-Witness-Script-Hash)
9+
* - P2TR (Taproot)
10+
*
11+
* The `Payment` interface defines the structure of a payment object used for constructing various
12+
* payment types, with fields for signatures, public keys, redeem scripts, and more.
513
*
614
* @packageDocumentation
715
*/

src/esm/networks.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// https://en.bitcoin.it/wiki/List_of_address_prefixes
2-
// Dogecoin BIP32 is a proposed standard: https://bitcointalk.org/index.php?topic=409731
31
/**
42
* Represents the Bitcoin network configuration.
53
*/

ts_src/networks.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
// https://en.bitcoin.it/wiki/List_of_address_prefixes
2-
// Dogecoin BIP32 is a proposed standard: https://bitcointalk.org/index.php?topic=409731
3-
41
/**
5-
* Represents a Bitcoin network configuration,including messagePrefix, bech32, bip32, pubKeyHash, scriptHash, wif.
6-
* Support bitcoin、bitcoin testnet and bitcoin regtest.
2+
* This module defines the network configurations for Bitcoin and its variants, including message prefixes,
3+
* Bech32 address format, BIP32 key derivation prefixes, and other address-related configurations.
4+
* It supports Bitcoin, Bitcoin testnet, and Bitcoin regtest networks.
5+
*
6+
* Additional information on address prefixes can be found here:
7+
* - https://en.bitcoin.it/wiki/List_of_address_prefixes
8+
*
79
* @packageDocumentation
810
*/
911
export interface Network {

ts_src/payments/index.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
/**
2-
* Represents a payment object, which is used to create a payment.
2+
* Provides functionality for creating and managing Bitcoin payment objects.
33
*
4-
* Supports P2PKH、P2SH、P2WPKH、P2WSH、P2TR and so on
4+
* This module supports multiple Bitcoin address types for payments, including:
5+
* - P2PKH (Pay-to-PubKey-Hash)
6+
* - P2SH (Pay-to-Script-Hash)
7+
* - P2WPKH (Pay-to-Witness-PubKey-Hash)
8+
* - P2WSH (Pay-to-Witness-Script-Hash)
9+
* - P2TR (Taproot)
10+
*
11+
* The `Payment` interface defines the structure of a payment object used for constructing various
12+
* payment types, with fields for signatures, public keys, redeem scripts, and more.
513
*
614
* @packageDocumentation
715
*/

0 commit comments

Comments
 (0)