@bitgo-beta/utxo-lib 8.0.3-beta.53 → 8.0.3-beta.55
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/README.md +19 -16
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
This library is a wrapper around [bitcoinjs-lib](https://github.com/bitcoinjs/bitcoinjs-lib) adding altcoin support.
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
|
+
|
|
6
7
|
- Multicoin support: Configurable behaviour based on [network](https://github.com/BitGo/bitgo-utxo-lib/blob/master/src/networks.js) objects.
|
|
7
8
|
- Backed by [BitGo](https://www.bitgo.com/info/)
|
|
8
9
|
|
|
9
10
|
## Installation
|
|
10
11
|
|
|
11
|
-
```
|
|
12
|
+
```bash
|
|
12
13
|
# using npm
|
|
13
14
|
npm install @bitgo/utxo-lib
|
|
14
15
|
|
|
@@ -19,20 +20,22 @@ yarn add @bitgo/utxo-lib
|
|
|
19
20
|
## Setup
|
|
20
21
|
|
|
21
22
|
JavaScript (ESM)
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
|
|
24
|
+
```javascript
|
|
25
|
+
import * as utxolib from '@bitgo/utxo-lib';
|
|
24
26
|
```
|
|
25
27
|
|
|
26
28
|
NodeJS (CJS)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
|
|
30
|
+
```javascript
|
|
31
|
+
const utxolib = require('@bitgo/utxo-lib');
|
|
29
32
|
```
|
|
30
33
|
|
|
31
34
|
## Usage
|
|
32
35
|
|
|
33
36
|
Support for parsing and building altcoin transactions is provided by the following methods
|
|
34
37
|
|
|
35
|
-
```
|
|
38
|
+
```typescript
|
|
36
39
|
utxolib.bitgo.createTransactionFromBuffer(buffer, network): UtxoTransaction
|
|
37
40
|
// (similarly `createTransactionFromHex(string, network)`)
|
|
38
41
|
|
|
@@ -45,15 +48,15 @@ The `UtxoTransaction(Builder)` classes have the same interface as the `Transacti
|
|
|
45
48
|
|
|
46
49
|
## Supported coins
|
|
47
50
|
|
|
48
|
-
|Network|Mainnet|Testnet|
|
|
49
|
-
|
|
50
|
-
|Bitcoin
|
|
51
|
-
|Bitcoin Cash
|
|
52
|
-
|Bitcoin Gold
|
|
53
|
-
|Bitcoin SV (Satoshi Vision)
|
|
54
|
-
|Dash
|
|
55
|
-
|eCash
|
|
56
|
-
|Litecoin
|
|
57
|
-
|Zcash
|
|
51
|
+
| Network | Mainnet | Testnet |
|
|
52
|
+
| --------------------------- | ------------------------------ | ------------------------------------- |
|
|
53
|
+
| Bitcoin | `utxolib.networks.bitcoin` | `utxolib.networks.testnet` |
|
|
54
|
+
| Bitcoin Cash | `utxolib.networks.bitcoincash` | `utxolib.networks.bitcoincashTestnet` |
|
|
55
|
+
| Bitcoin Gold | `utxolib.networks.bitcoingold` | `utxolib.networks.bitcoingoldTestnet` |
|
|
56
|
+
| Bitcoin SV (Satoshi Vision) | `utxolib.networks.bitcoinsv` | `utxolib.networks.bitcoinsvTestnet` |
|
|
57
|
+
| Dash | `utxolib.networks.dash` | `utxolib.networks.dash` |
|
|
58
|
+
| eCash | `utxolib.networks.ecash` | `utxolib.networks.ecashTestnet` |
|
|
59
|
+
| Litecoin | `utxolib.networks.litecoin` | `utxolib.networks.litecoinTest` |
|
|
60
|
+
| Zcash | `utxolib.networks.zcash` | `utxolib.networks.zcashTest` |
|
|
58
61
|
|
|
59
62
|
> [Bitcoin SV](https://blog.bitgo.com/bsv-deprecation-6b3fff4df34c) no longer supports sending funds to BitGo wallets. Existing customers with Bitcoin SV in BitGo wallets will still be able to access and sweep funds to an external Bitcoin SV wallet.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitgo-beta/utxo-lib",
|
|
3
|
-
"version": "8.0.3-beta.
|
|
3
|
+
"version": "8.0.3-beta.55",
|
|
4
4
|
"description": "Client-side Bitcoin JavaScript library",
|
|
5
5
|
"main": "./dist/src/index.js",
|
|
6
6
|
"engines": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"dist/src"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@bitgo-beta/blake2b": "3.0.4-beta.
|
|
49
|
+
"@bitgo-beta/blake2b": "3.0.4-beta.291",
|
|
50
50
|
"@brandonblack/musig": "^0.0.1-alpha.0",
|
|
51
51
|
"@noble/secp256k1": "1.6.3",
|
|
52
52
|
"bech32": "^2.0.0",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
},
|
|
85
85
|
"author": "BitGo SDK Team <sdkteam@bitgo.com>",
|
|
86
86
|
"license": "MIT",
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "94c726949812c251db70f5238d8a8fb445beccae"
|
|
88
88
|
}
|