From 48588684c3e93988e5050ad97b0d31098d479636 Mon Sep 17 00:00:00 2001 From: odudex Date: Fri, 20 Dec 2024 14:23:51 -0300 Subject: [PATCH] don't add cosigners to taproot single sig policy --- mkdocs.yml | 2 +- pyproject.toml | 2 +- src/krux/metadata.py | 2 +- src/krux/psbt.py | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index d9894579..bc19fc38 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -51,7 +51,7 @@ edit_uri: edit/main/docs docs_dir: docs site_dir: public extra: - latest_krux: krux-v25.01.beta4 + latest_krux: krux-v25.01.beta5 latest_installer: v0.0.20-beta latest_installer_rpm: krux-installer-0.0.20_beta-1.x86_64.rpm latest_installer_deb: krux-installer_0.0.20-beta_amd64.deb diff --git a/pyproject.toml b/pyproject.toml index f2e229ec..03b7b1dc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,7 @@ [tool.poetry] name = "krux" -version = "25.01.beta4" +version = "25.01.beta5" description = "Open-source signing device firmware for Bitcoin" authors = ["Jeff S "] diff --git a/src/krux/metadata.py b/src/krux/metadata.py index 369513b2..6037afb8 100644 --- a/src/krux/metadata.py +++ b/src/krux/metadata.py @@ -19,5 +19,5 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -VERSION = "25.01.beta4" +VERSION = "25.01.beta5" SIGNER_PUBKEY = "03339e883157e45891e61ca9df4cd3bb895ef32d475b8e793559ea10a36766689b" diff --git a/src/krux/psbt.py b/src/krux/psbt.py index 58e9e3a7..3a445c95 100644 --- a/src/krux/psbt.py +++ b/src/krux/psbt.py @@ -736,10 +736,9 @@ def get_policy(scope, scriptpubkey, xpubs): cosigners = get_cosigners_taproot_miniscript( scope.taproot_bip32_derivations, xpubs ) - policy.update({"cosigners": cosigners}) if len(cosigners) > 1: # Assume it is single-sig TR if there is only one cosigner - policy.update({"miniscript": P2TR}) + policy.update({"cosigners": cosigners, "miniscript": P2TR}) except Exception as e: print("Error getting taproot PSBT cosigners: ", e)