Skip to content

createmultisig on command-line doesn't sort pubkeys #5343

Description

@kyuupichan

I would expect

$ ./ run_electrum createmultisig 2 '["03b25918969e43702abeb6a60942e72e3a3c603dfd272de59e7679a52f35527ccf", "0383cf538b41dbba7b7ee57a53bc673fef8a6896734ae587032f755ac0cba86cc2"]'

to return the correct result it returns when the keys are reversed:

{
    "address": "3AiUfSRMbvXzyAHhFoFAtVFibWPdkNV9DW",
    "redeemScript": "52210383cf538b41dbba7b7ee57a53bc673fef8a6896734ae587032f755ac0cba86cc22103b25918969e43702abeb6a60942e72e3a3c603dfd272de59e7679a52f35527ccf52ae"
}

Activity

  1. ecdsa commented on May 14, 2019

    @ecdsa
    Member

    IIRC it follows what bitcoind does.

  2. kyuupichan commented on May 14, 2019

    @kyuupichan
    ContributorAuthor

    Hmm, OK. I would have thought the purpose was to generate addresses for a merchant script; any script doing so would receive payments that it couldn't spend with Electrum

  3. ecdsa commented on May 14, 2019

    @ecdsa
    Member

    we can change that. we just need to weight the pros and cons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions