This file contains 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
static async verifyReceipt( | |
dependencies: Pick<Arbundles, "stringToBuffer" | "getCryptoDriver" | "deepHash">, | |
receipt: UploadReceiptData, | |
): Promise<boolean> { | |
const { id, deadlineHeight, timestamp, public: pubKey, signature, version } = receipt; | |
const dh = await dependencies.deepHash([ | |
dependencies.stringToBuffer("Bundlr"), | |
dependencies.stringToBuffer(version), | |
dependencies.stringToBuffer(id), | |
dependencies.stringToBuffer(deadlineHeight.toString()), |
This file contains 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
import Irys from "@irys/sdk"; | |
import fs from "fs"; | |
const wallet = JSON.parse( | |
fs | |
.readFileSync( | |
"NEVERFKNTELLINGYOUDAVIDHACKER.json", | |
) | |
.toString(), | |
); |