Skip to content

P2MS Tests

bitcoincoretech edited this page Nov 17, 2020 · 2 revisions

More P2MS Test Data

image image image

    {
      "description": "input/output from m/pubkeys/signatures",
      "arguments": {
        "m": 2,
        "pubkeys": [
          "030000000000000000000000000000000000000000000000000000000000000001",
          "030000000000000000000000000000000000000000000000000000000000000002",
          "030000000000000000000000000000000000000000000000000000000000000003"
        ],
        "signatures": [
          "300602010002010001",
          "300602010102010001"
        ]
      },
      "expected": {
        "m": 2,
        "n": 3,
        "name": "p2ms(2 of 3)",
        "output": "OP_2 030000000000000000000000000000000000000000000000000000000000000001 030000000000000000000000000000000000000000000000000000000000000002 030000000000000000000000000000000000000000000000000000000000000003 OP_3 OP_CHECKMULTISIG",
        "pubkeys": [
          "030000000000000000000000000000000000000000000000000000000000000001",
          "030000000000000000000000000000000000000000000000000000000000000002",
          "030000000000000000000000000000000000000000000000000000000000000003"
        ],
        "signatures": [
          "300602010002010001",
          "300602010102010001"
        ],
        "input": "OP_0 300602010002010001 300602010102010001",
        "witness": []
      }
    }
Clone this wiki locally