Skip to content

Commit

Permalink
don't add cosigners to taproot single sig policy
Browse files Browse the repository at this point in the history
  • Loading branch information
odudex committed Dec 20, 2024
1 parent 62c44c8 commit 4858868
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]

Expand Down
2 changes: 1 addition & 1 deletion src/krux/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
3 changes: 1 addition & 2 deletions src/krux/psbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 4858868

Please sign in to comment.