openbazaar-go icon indicating copy to clipboard operation
openbazaar-go copied to clipboard

ETH Offline Purchase Gets Invalid Payment Address

Open jjeffryes opened this issue 5 years ago • 3 comments

I made an offline purchase from one testnet node to another using TETH.

The seller's node saw the order, but it is in an error state, with the error being "invalid payment address."

Below is the response from the /order endpoint.

{
    "contract": {
        "vendorListings": [
            {
                "slug": "jj-tiny-price-eth-test",
                "vendorID": {
                    "peerID": "QmdE1iJkTvbvRVf9pj6t7vCiv46VepP53t8AZsnkobC5Zw",
                    "handle": "",
                    "pubkeys": {
                        "identity": "CAESIKWy9WR9N9wxhM1/5mqnx83NsUV5YeIsDc6Cc831AhUw",
                        "bitcoin": "AkCez6qEcbOoY4ejKd6aw//uzb6riZ/HIZ+hpU9B9Mfh"
                    },
                    "bitcoinSig": "MEUCIQDtjbdwjDOQvgXzwMgNj6OfZ3x+l4JCfGx0y7QHf+3CjgIgG8LVdK7YAzxrfFbtWwhTs3wJkmNlvy5vu5WKE8Ug8XI="
                },
                "metadata": {
                    "version": 5,
                    "contractType": "DIGITAL_GOOD",
                    "format": "FIXED_PRICE",
                    "expiry": "2037-12-31T05:00:00.000Z",
                    "acceptedCurrencies": [
                        "TETH"
                    ],
                    "pricingCurrency": "",
                    "language": "",
                    "escrowTimeoutHours": 1,
                    "coinType": "",
                    "coinDivisibility": 0,
                    "priceModifier": 0
                },
                "item": {
                    "title": "JJ Tiny Price ETH test",
                    "description": "test",
                    "processingTime": "",
                    "price": 0,
                    "nsfw": false,
                    "images": [
                        {
                            "filename": "reclamation_sage___mtg_by_clintcearley-d7p2ovd.jpg",
                            "original": "Qma4ECuBbwpGVzCkrFQa8kM2s3kjJoe2sUfAV97zWwsYsf",
                            "large": "QmQ94HfeD4hVF5xbPQj4cxD7E4saJNfj3j27kTZVC2xxyd",
                            "medium": "QmUvuV36aC4PVxazWtmWte5Gf5gXytkJxjje3pG5L1mtLy",
                            "small": "QmcprkyDqmwH7bgPQvn94Fxw88A15qviduK4D4dC5tnYvu",
                            "tiny": "QmXDAPAjEbKkon4yhGGpYx8NJvSDgvcZcLS645rcaKNbhF"
                        }
                    ],
                    "grams": 0,
                    "condition": "NEW",
                    "skus": [
                        {
                            "productID": "",
                            "surcharge": 0,
                            "quantity": 0,
                            "bigSurcharge": "",
                            "bigQuantity": "0"
                        }
                    ],
                    "priceModifier": 0,
                    "bigPrice": "100000000000",
                    "priceCurrency": {
                        "code": "ETH",
                        "divisibility": 18
                    }
                },
                "moderators": [
                    "QmanJzX92hfe6MFD16JouBKRYD4Bit9QF5KRS3Mu2q9E5C"
                ],
                "termsAndConditions": "",
                "refundPolicy": ""
            }
        ],
        "buyerOrder": {
            "refundAddress": "0x827C0a813F093a7Ee3f075908D94adc42b30e434",
            "refundFee": 0,
            "shipping": {
                "shipTo": "",
                "address": "",
                "city": "",
                "state": "",
                "postalCode": "",
                "country": "NA",
                "addressNotes": ""
            },
            "buyerID": {
                "peerID": "QmXAFp8nQZKBeLY2ecsmS5gm3kguXnQeidBJxtJazTVijT",
                "handle": "",
                "pubkeys": {
                    "identity": "CAESIIXIAt3CBEBxggCE4zVfz1VUzZkOEEAdroM65qWKwXZ5",
                    "bitcoin": "A7fWTJBLRuaTnDZWel4jP62W56QJPezdxNepsyhWs5AI"
                },
                "bitcoinSig": "MEQCICwhdMqUJBcUBL9ZDmPQynZq+roXM7RArCAGR1Z/yM9EAiBdIIUbMq1k3MNQ+DdL3ieoDhYW4ul5odZmJzz2Ugyu/A=="
            },
            "timestamp": "2020-02-21T22:04:14.037701Z",
            "items": [
                {
                    "listingHash": "zb2rhatpM2UUSzpFEa2reMuQULsg9cVCHTeVFqeAd8eb5TCVS",
                    "quantity": 0,
                    "shippingOption": {
                        "name": "",
                        "service": ""
                    },
                    "memo": "",
                    "paymentAddress": "",
                    "quantity64": 0,
                    "bigQuantity": "100"
                }
            ],
            "payment": {
                "method": "DIRECT",
                "moderator": "",
                "amount": 0,
                "chaincode": "5e6fe5119788c37783cb9f8fd2997bd8298eece60387d129cb8cb05c63ce05c3",
                "address": "0xB64962eCb008eAF5a2eE79D8cF0Fa90c2685465b",
                "redeemScript": "ff8fff850301010f45746852656465656d53637269707401ff86000108010554786e494401ff880001095468726573686f6c64010600010754696d656f75740106000105427579657201ff8800010653656c6c657201ff880001094d6f64657261746f7201ff8800010f4d756c74697369674164647265737301ff8800010c546f6b656e4164647265737301ff8800000017ff87010101074164647265737301ff8800010601280000ffb6ff860114ffd2ff997bffd829ff8effecffe603ff87ffd129ffcbff8cffb05c63ffce05ffc301010214ff827c0aff813f093a7effe3fff075ff90ff8dff94ffadffc42b30ffe43401142bffa05e522f10ffa5ffb5ffb9ff9dffb8556f71ffb650ffe7ffbe1f4101140000000000000000000000000000000000000000011436ffe1ff9eff91ffdffffcffa4251f4fffb541fff5ffc3ffa5ff96252effa4ffbb0114000000000000000000000000000000000000000000",
                "coin": "",
                "bigAmount": "10000000000000",
                "amountCurrency": {
                    "code": "TETH",
                    "divisibility": 18
                }
            },
            "ratingKeys": [
                "A708MMsb5RCzPLNP+KK8SG94E0GdT/ESjQbouBTeKjKi"
            ],
            "alternateContactInfo": "",
            "version": 2,
            "bigRefundFee": ""
        },
        "signatures": [
            {
                "section": "LISTING",
                "signatureBytes": "eu62XBbyfL5KbWH3/Rqhm4Hpx9UaBFP5LRn/YQHwH6S35S1NR34Mb+DmdQpDCKuh6P09xIpgtz6V9QznsibMBA=="
            },
            {
                "section": "ORDER",
                "signatureBytes": "QcfVYngLx+EPcHLGo56NJxsjyTFQ/iNHwj2F06goJWR24Qi6VhSwIoqihoMKe9doKBdh51ISKoNrlUGuFb8mCg=="
            }
        ],
        "errors": [
            "invalid payment address"
        ]
    },
    "state": "PROCESSING_ERROR",
    "read": false,
    "funded": false,
    "unreadChatMessages": 0,
    "paymentAddressTransactions": [
    ]
}

jjeffryes avatar Feb 21 '20 22:02 jjeffryes

Well 0xB64962eCb008eAF5a2eE79D8cF0Fa90c2685465b is definitely an ok address.

hoffmabc avatar Feb 21 '20 22:02 hoffmabc

It means the multisig is not matching up... @cpacia any ideas here? @amangale ?

hoffmabc avatar Feb 21 '20 22:02 hoffmabc

Testing this case I have no seen this issue.

cpacia avatar Feb 28 '20 17:02 cpacia