https://github.com/codespaces/new/aztecprotocol/tiny-noir-codespace
Stopped being a lazy bastard and moved this script to a proper repo here
If you're like me and you use great open-source finance software like ActualBudget you probably want your Gnosis Pay transactions in CSV format for an easy import.
Fear not, me (and ChatGPT) have your back:
- Login to GnosisPay
- Open the console (
Ctrl + Shift + J
orCmd + Option + J
) - Paste this script. Don't blindly trust me, if you don't know JS then ask ChatGPT to explain what does this script do.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let hashOfPubKey = std::hash::keccak256(pub_key); | |
let mut result : Field = 0; | |
let mut v : Field = 1; | |
for i in 0..20 { | |
let index = (20 - i); | |
result += hashOfPubKey[index + 11] as Field * v; | |
v *= 256; | |
} |