In PHP I am trying to format the signature wich I receive from the https://api.rarible.org/v0.1/collections/ETHEREUM:'.collectionAddress.'/generateTokenId?minter=ETHEREUM:'.ownAddress API.
This is the response I get from it:
object(stdClass)#44 (3) { ["v"]=> int(27) ["r"]=> string(66) "0xgc2b88ae8cf1c63e6356a40a673d7e802aed3cffbbad70a51370b3b1f1b176b7" ["s"]=> string(66) "0x207177237de0ccc5a6a60e6fef81f817b0dee67c0692e8d89c64d3ce48674b3c" } However I tried different things but always end up with the following message:
`POST https://api.rarible.org/v0.1/items/lazy/mint` resulted in a `400 Bad Request` response: {"code":"VALIDATION","message":"Invalid signatures for creators [0x48fe0...]"} I have tried:
$signatureString = $signature->r . substr($signature->s, 2) . $vHex; and
$r = substr($signature->r, 0, 32); $s = substr($signature->s, 2, 322); $vHex = dechex($signature->v); // Convert to hex if `v` is in decimal $signatureString = $r.$s.$vHex And even simply just putting it all togheter normally:
$r = $signature->r; $s = $signature->s; $v = $signature->v; $signatureString = $r.$s.$v and also $v.$r.$s like the response. but didnt work aswell I am quite confused on how to proceed further, I also looked for possible examples but Rarible doesnt provide one for signatures..