s_f = k^-1 * (h + d * r_f) (mod p)
s = k^-1 * (h + d * r) (mod p)
In general, I don't understand something or this article is suspicious:
1) their assumptions are quite strong, for example it is unlikely to get two signatures, where the signed message is identical
2) their calculations are tricky, for example in the middle of their calculations, they skip the signed message in their equations
3) they use some weird formatting, where I don't know if something is a multiplication, or maybe it is a dot, because it looks like accessing a member of a structure in C
Edit: Probably I should read the original source first to reproduce that, because it has better quality: https://www.usenix.org/system/files/sec22-sullivan.pdf