Abdel on Nostr: be me: yesterday I found randomly a paper about 2 Circle STARK friendly hash ...
be me: yesterday I found randomly a paper about 2 Circle STARK friendly hash functions working with Mersenne M31 (RPO-M31 and XHash-M31: Efficient Hash Functions for Circle STARKs by Tomer Ashur1 and Sundas Tariq)
then i was: ohhh wow, looks interesting. then: write a rust implementation
then start thinking: wait, maybe it could be a good candidate for a Circle STARK friendly AND Bitcoin Script friendly hash function
then: start doing analysis and cost estimate
then realise that they would NOT be practical to implement in Bitcoin Script...
It's a pity for this but still it's very interesting hash functions, and the fact that they natively work with M31 is super promising.
Maybe it's worth building a Cairo and Solidity implementation and benchmark the costs. They might be more interesting to use than Poseidon for Circle STARKs M31.
Paper:
https://eprint.iacr.org/2024/1635.pdf Rust repo:
https://github.com/AbdelStark/rpo-xhash-m31
Published at
2025-04-25 09:42:24 UTCEvent JSON
{
"id": "c358a0d831eb2449a87c45b3cbedbabd6ec60c8c95602bc9b08ab2ef81d6d908",
"pubkey": "b8f4c2e90f0dd667121533d7b8dafd77384b0b5051f8272e5493c58f7f93e14b",
"created_at": 1745574144,
"kind": 1,
"tags": [],
"content": "be me: yesterday I found randomly a paper about 2 Circle STARK friendly hash functions working with Mersenne M31 (RPO-M31 and XHash-M31: Efficient Hash Functions for Circle STARKs by Tomer Ashur1 and Sundas Tariq) \n\nthen i was: ohhh wow, looks interesting. then: write a rust implementation \n\nthen start thinking: wait, maybe it could be a good candidate for a Circle STARK friendly AND Bitcoin Script friendly hash function \n\nthen: start doing analysis and cost estimate\n\nthen realise that they would NOT be practical to implement in Bitcoin Script... \n\nIt's a pity for this but still it's very interesting hash functions, and the fact that they natively work with M31 is super promising. \n\nMaybe it's worth building a Cairo and Solidity implementation and benchmark the costs. They might be more interesting to use than Poseidon for Circle STARKs M31.\n\nPaper: https://eprint.iacr.org/2024/1635.pdf \nRust repo: https://github.com/AbdelStark/rpo-xhash-m31\n\nhttps://m.primal.net/QchI.jpg",
"sig": "03ccc049d08036c405dc787425d9e00ddc8ab5bcd8bec39a5f041de45e0dddc6c96483ce4255ddc2604ed56e2e0048a7748140532f545c66b76b344dca51d1e3"
}