Open bitcoinwarrior1 opened 5 years ago
what's the sequence by the way, is it leading bytes | price | expiry | contract address | tickets array and for spawn leading bytes is 0x02
please use latest code from master, and please merge my PR https://github.com/AlphaWallet/contracts/pull/97 because in the old contract for price and expiry it's using 32 bytes not 4 bytes
@James-Sangalli I updated my code to master, pls check it, this time should be correct, sorry I mistake that linkdata is the same as the data to sign, so it turns out that: linkdata = leading byte(0x02)| price in microeth 4 byte| expiry in 4 byte| contract address| tickes array and the data to sign is: signature = sign(price convert to eth (32 bytes)| expiry(32 bytes)| contract address| tickes array) once confirmed I'll close this issue
/**
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
@lyhistory maybe the padding is for the price? Since that is at the beginning of the link, maybe you encoded using the full 256 bits when actually you can compress it into szabo and only take 32 bits.