question

crutchfield_electronics avatar image
0 Likes"
crutchfield_electronics asked

Marketplace Account Deletion - payload message is what part of the JSON object

Is this whole body the payload message used to verify signature? Or do I just use the eiasToken value as the "messagepayload"?


{ "metadata": { "topic": "MARKETPLACE_ACCOUNT_DELETION", "schemaVersion": "1.0", "deprecated": false }, "notification": { "notificationId": "49feeaeb-4982-42d9-a377-9645b8479411_33f7e043-fed8-442b-9d44-791923bd9a6d", "eventDate": "2021-03-19T20:43:59.462Z", "publishDate": "2021-03-19T20:43:59.679Z", "publishAttemptCount": 1, "data": { "username": "test_user", "userId": "ma8vp1jySJC", "eiasToken": "nY+sHZ2PrBmdj6wVnY+sEZ2PrA2dj6wJnY+gAZGEpwmdj6x9nY+seQ==" } } }


I'm trying to do this in C# but not where what part is the messagepayload
EncodedKeySpec publicKeySpec = new X509EncodedKeySpec(Base64.getDecoder().decode{ public key});
java.security.PublicKey publicKey = KeyFactory.getInstance("EC").generatePublic(publicKeySpec);
Signature sig = Signature.getInstance{ SHA1 with ECDSA};
sig.initVerify{ public key};
sig.update(messagePayload.getBytes()); <----------THIS LINE
sig.verify(Base64.getDecoder().decode{ signature value from X-EBAY-SIGNATURE header});

marketplace account deletionmessagepayload
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.