Created
March 22, 2023 19:11
-
-
Save owenkellogg/b1c0433c4bef36f48d7b96f849326810 to your computer and use it in GitHub Desktop.
additional data
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
import { BoostPowJob } from 'boostpow' | |
export async function main() { | |
const job = BoostPowJob.fromObject({ | |
content: '7c6ea266f959b03e779114ac0cc05c13f4a7d44745920a765192d82ecb6d31ee', | |
diff: 0.0001, | |
additionalData: Buffer.from(JSON.stringify({ paymail: '[email protected]' }), 'utf8').toString('hex') | |
}) | |
console.log(job) | |
console.log(job.toHex()) | |
console.log('.toString()', job.additionalData.toString()) | |
console.log('.string', job.additionalData.string) | |
} | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment