Skip to content

Consider adding support for placeholder-based artifacts #356

Open

Description

@mr-zwets

@mainnet-pat already did work on a PR to add support for placeholder-based artifacts

opening an issue for this work so we have a place to discuss the feature and plan it in in our milestones

I'm making this a child issue of "better support for hand-written/hand-optimized contract bytecode"

The description/rational for the PR is added below

Placeholder-based artifacts are those which might be produced elsewhere or contain raw bitcoin script. Placeholders are used to insert the properly encoded variables at certain places in the script to produce a valid contract.

This pattern first emerged in our work for bch-xmr atomic swaps, now in another project where I had to support the EC-compatible 2 of 3 multisig contract.

Also add a sample 2 of 3 multisig contract and tests to highlight the feature and demonstrate the usage patterns.

Activity

  1. added this to the v1 milestone on Sep 11, 2025
  2. added
    javascript-sdk
    on Sep 11, 2025
  3. modified the milestones: v1, v0.14.0 on Sep 11, 2025
  4. linked a pull request that will close this issueAdd support for placeholder-based artifacts #321on Sep 11, 2025
  5. modified the milestones: v0.14.0, v0.15.0 on Oct 7, 2025
  6. modified the milestones: v0.15.0, v0.14.0 on Jun 28, 2026
  7. modified the milestones: v0.14.0, v0.15.0 on Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    javascript-sdk

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions