trezor/connect

Is there an example of multisig for GetAddress?

Closed this issue · 2 comments

I really don't know what to do, hope to get some help, thanks.

I sent to the device:

3f2323001d0000019008ad8080800808000800180122ff020a7d0a6f080210b2f5c8820418002230e1fededddd1ad7a6b5dbad3dd5cf78df97bc7db75b7346f9
3ff3bd9edf6e797dd6dd6dc7ddd7df75779d74f36efb73af7d3231d3773ae1be3b7da6f8e39e5df5addfe79e5c6b9f5bef673be37d7675fd3c7b9ede7356f975
3fde37775eb4d77e1dd7b73ae510ad808080081000100010000a7d0a6f080410a4f484e40d18002230736e3ce39ef7e76eb4e7b7f579f6dae9ce7bf396dd71b7
3f1e71c6f5e3df3be5fd3d7f5df4ddfd3775fedbd36db9e38e7a3231d3675adb97dfe7dd5adf6d3b69cf7ce39f74eb9d1be3af1de9ae3de5a6b7f39edf7f5ebc
3f77469cdfdd35e1a7de7b7d9cef10ad808080081000100110000a7d0a6f080410ecb8a5e503180022307387b6d7bf1ce7a71e7baf5d6f669ceb873ceb5eb66d
3fc7ddf74739d9f69b6f4db5df96b6e9edf77fd69e6b67376dceb73231d36f7de7cf1c6b971ae36d5ed1de37734e7669fd366b4df575a6fb7faddbf7bebce7a7
3f3bdf4d1b7fa69af34edaebbd5a7b10ad8080800810001002100018022801000000000000000000000000000000000000000000000000000000000000000000
3f23230003000000120803120e6279746573206f766572666c6f7700000000000000000000000000000000000000000000000000000000000000000000000000

But got a reply:

code: "Failure_DataError"
message: "bytes overflow"

This is the data object:

{
    "address_n": [
        2147483693, 
        0, 
        0
    ], 
    "multisig": {
        "pubkeys": [
            {
                "node": "xpub6AF46XPkbc77t8w74QNXg9SshYxSutwkpvEg3jGKfMEUT74MJ5C689n7xnF1XfrvsMof8rh7sZPxH68i9rPom17CRyqbu56Semn9vDS79Eu", 
                "address_n": [
                    2147483693, 
                    0, 
                    0, 
                    0
                ]
            }, 
            {
                "node": "xpub6F9ucJkut2FDrpvEGYBq59Bnfii1Jb52e9R6covwNvUkdCo18FGhRBvM8VaiCwBVzdKJGXwbY8HwJiw4uhnYi3oKnB3dxNZ3dELJASXrVLe", 
                "address_n": [
                    2147483693, 
                    0, 
                    1, 
                    0
                ]
            }, 
            {
                "node": "xpub6DymKmgGGubzsiFu7w6hrqC7YgfaCMQ6v4zhPUbgQTvUv82AUp69ZRPeUkXQZ4rgXnYJMYJTYRTqfMfyE2SmgvMHbaVeMt3jE8g2u5W2d6g", 
                "address_n": [
                    2147483693, 
                    0, 
                    2, 
                    0
                ]
            }
        ], 
        "m": 2
    }, 
    "script_type": "SPENDMULTISIG", 
    "show_display": true
}

Hi, I have created a new issue: trezor/trezor-firmware#888 this is either a bug or we should return a more meaningful message. Will look into it soon.

Closing, see more info in the FW issue linked above.