Li-Fan Chen
says to
YSITD
nonceA = key + number.long_to_bytes(nonceA)