@scure/btc-signer
Advanced tools
Comparing version 1.2.2 to 1.3.0
{ | ||
"name": "@scure/btc-signer", | ||
"version": "1.2.2", | ||
"version": "1.3.0", | ||
"description": "Audited & minimal library for creating, signing & decoding Bitcoin transactions: with Schnorr, Taproot, UTXO & PSBT", | ||
"files": [ | ||
"lib/index.js", | ||
"lib/esm/index.js", | ||
"lib/esm/index.js.map", | ||
"lib/esm/package.json", | ||
"lib/index.d.ts", | ||
"lib/index.d.ts.map", | ||
"index.ts" | ||
"lib", | ||
"src" | ||
], | ||
@@ -22,2 +17,37 @@ "main": "lib/index.js", | ||
"default": "./lib/index.js" | ||
}, | ||
"./index": { | ||
"types": "./lib/index.d.ts", | ||
"import": "./lib/esm/index.js", | ||
"default": "./lib/index.js" | ||
}, | ||
"./payment": { | ||
"types": "./lib/payment.d.ts", | ||
"import": "./lib/esm/payment.js", | ||
"default": "./lib/payment.js" | ||
}, | ||
"./psbt": { | ||
"types": "./lib/psbt.d.ts", | ||
"import": "./lib/esm/psbt.js", | ||
"default": "./lib/psbt.js" | ||
}, | ||
"./script": { | ||
"types": "./lib/script.d.ts", | ||
"import": "./lib/esm/script.js", | ||
"default": "./lib/script.js" | ||
}, | ||
"./transaction": { | ||
"types": "./lib/transaction.d.ts", | ||
"import": "./lib/esm/transaction.js", | ||
"default": "./lib/transaction.js" | ||
}, | ||
"./utils": { | ||
"types": "./lib/utils.d.ts", | ||
"import": "./lib/esm/utils.js", | ||
"default": "./lib/utils.js" | ||
}, | ||
"./utxo": { | ||
"types": "./lib/utxo.d.ts", | ||
"import": "./lib/esm/utxo.js", | ||
"default": "./lib/utxo.js" | ||
} | ||
@@ -47,4 +77,4 @@ }, | ||
"build": "tsc && tsc -p tsconfig.esm.json", | ||
"lint": "prettier --check index.ts", | ||
"format": "prettier --write index.ts", | ||
"lint": "prettier --check src", | ||
"format": "prettier --write src", | ||
"test": "node test/index.test.js && node test/psbt-test/bip174-psbt-extended.test.js", | ||
@@ -51,0 +81,0 @@ "test:extended": "node --experimental-loader ./test/bitcoinjs-test/esm-loader.js ./test/bitcoinjs-test/index.test.js", |
@@ -12,3 +12,4 @@ # scure-btc-signer | ||
- 📨 BIP174 PSBT | ||
- 🪶 3000 lines | ||
- 🗳️ Easy ordinals and inscriptions | ||
- 🪶 3300 lines | ||
@@ -21,3 +22,3 @@ Initial development has been funded by [Ryan Shea](https://shea.io). | ||
_Check out all web3 utility libraries:_ [ETH](https://github.com/paulmillr/micro-eth-signer), [BTC](https://github.com/paulmillr/scure-btc-signer), [SOL](https://github.com/paulmillr/micro-sol-signer), [tx-tor-broadcaster](https://github.com/paulmillr/tx-tor-broadcaster) | ||
_Check out all web3 utility libraries:_ [ETH](https://github.com/paulmillr/micro-eth-signer), [BTC](https://github.com/paulmillr/scure-btc-signer), [SOL](https://github.com/paulmillr/micro-sol-signer) | ||
@@ -70,2 +71,3 @@ ### This library belongs to _scure_ | ||
- [UTXO selection](#utxo-selection) | ||
- [Ordinals and custom scripts](#ordinals-and-custom-scripts) | ||
- [Utils](#utils) | ||
@@ -882,2 +884,15 @@ - [getAddress](#getaddress) | ||
## Ordinals and custom scripts | ||
We support custom scripts. You can pass it as last argument to `p2tr`. | ||
Ordinals, inscriptions, runes and others are handled by a separate package for now: | ||
[micro-ordinals](https://github.com/paulmillr/micro-ordinals). | ||
The package contains: | ||
- Real code for ordinals / inscriptions | ||
- CLI tool that allows to upload files as inscriptions | ||
- Example usage of custom scripts | ||
## Utils | ||
@@ -993,3 +1008,4 @@ | ||
UTXO selection functionality has not been audited yet. | ||
UTXO selection functionality has not been audited yet. Commit [58d4554](58d455480919e968aabff132503560effb2f8eaf) | ||
split the library from one into several files to ease future maintainability. | ||
@@ -996,0 +1012,0 @@ ### Supply chain security |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
827960
61
11226
1034
1