@bitgo-beta/unspents 0.13.2-beta.556 → 0.13.2-beta.558
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/docs/input-costs.md +10 -9
- package/package.json +3 -3
package/docs/input-costs.md
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
# Input Costs
|
|
2
|
+
|
|
2
3
|
This document contains the worst-case input costs for various script types and spend types.
|
|
3
4
|
The input costs are calculated using the `Dimensions` class from `@bitgo/unspents`.
|
|
4
5
|
|
|
5
|
-
| Script Type | Chain Codes | Spend Type
|
|
6
|
-
|
|
|
7
|
-
| p2sh
|
|
8
|
-
| p2shP2wsh
|
|
9
|
-
| p2wsh
|
|
10
|
-
| p2tr
|
|
11
|
-
| p2tr
|
|
12
|
-
| p2trMusig2
|
|
13
|
-
| p2trMusig2
|
|
6
|
+
| Script Type | Chain Codes | Spend Type | Input Size (Virtual Bytes) | Relative Size (p2trMusig2 = 1.00) |
|
|
7
|
+
| ----------- | ----------- | ------------------------------------------------ | -------------------------- | --------------------------------- |
|
|
8
|
+
| p2sh | 0/1 | all | 298 | 5.14 |
|
|
9
|
+
| p2shP2wsh | 10/11 | all | 140 | 2.41 |
|
|
10
|
+
| p2wsh | 20/21 | all | 105 | 1.81 |
|
|
11
|
+
| p2tr | 30/31 | Script Path, Level 2 (Backup/User, Backup/BitGo) | 116 | 2.00 |
|
|
12
|
+
| p2tr | 30/31 | Script Path, Level 1 (User/BitGo) | 108 | 1.86 |
|
|
13
|
+
| p2trMusig2 | 40/41 | Script Path (Backup/User, Backup/BitGo) | 108 | 1.86 |
|
|
14
|
+
| p2trMusig2 | 40/41 | Key Path (User/BitGo) | 58 | 1.00 |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitgo-beta/unspents",
|
|
3
|
-
"version": "0.13.2-beta.
|
|
3
|
+
"version": "0.13.2-beta.558",
|
|
4
4
|
"description": "Defines the chain codes used for different unspent types and methods to calculate bitcoin transaction sizes",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"should": "~13.2.3"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@bitgo-beta/utxo-lib": "8.0.3-beta.
|
|
39
|
+
"@bitgo-beta/utxo-lib": "8.0.3-beta.559",
|
|
40
40
|
"lodash": "~4.17.21",
|
|
41
41
|
"tcomb": "~3.2.29",
|
|
42
42
|
"varuint-bitcoin": "^1.0.4"
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "25efd640697123a2ab9ff4fc95aefb3bc76fbe00"
|
|
54
54
|
}
|