34254…

Looks like I’m creating ecash shares πŸ™Œ but how do I get access to them or see them outside the log statements?

The shares are coming from my local pool in the container right?

Reply to this note

Please Login to reply.

Discussion

Bertha this is sick! I have never tried to mine ehash with a physical ASIC. You are pushing the frontier! πŸ‘

It's an ephemeral setup right now. The whole stack lives and dies with those nix containers, mint and all. So when you ctrl-c the in-memory DB is wiped and the mint goes down, meaning you can't claim or swap ecash tokens anymore. When you start it back up it randomly generates a new set of private keys, so the old ecash won't be recognized.

I'll push an update this morning to log out some ehash tokens. Then you should be able to configure an ecash wallet to connect to the mint and claim tokens.

With a config file and a switch to an on-disk DB, it should be possible to stop and start without losing all your accumulated ehash.

If you're a dev check out my github issues! You could fix it yourself!

Love it, I’ll check in later! No pressure just playing at the moment but was really easy to get setup and this hash pool concept is amazing πŸ™Œ

Pull master and you can now try to claim ehash to a cashu wallet. You should be able to connect your wallet to the mint at 127.0.0.1:3338. It's hard coded to spit out a 1 difficulty token every minute.

https://github.com/vnprc/hashpool/commit/cd15bb70238a7f63bf091cf1c846c4c44b796840

I pulled the latest and I can see cashu tokens in the logs πŸ₯œ

I tried connecting macadamia and cashu.me but there was an issue. Macadamia reported that the keysets for the mint were not available.

I can program but not much of a developer! I’ll keep playing with Windsurf and see where I get to. Windsurf thinks it’s an issue with the HASH unit keysets being unretrivable given the Custom unit.

Seems like a poor design to have supported currencies coded at the wallet level. That should be a mint setting. The wallet should be smart enough to retrieve it from the mint and 'just work'.

Lotta work to do!

Multi-currency wallets need to know the difference

Of course, but why does it need to be hard coded into the wallet?

I'm not aware of a wallet that surfaces a user level custom currency but that should work too. πŸ€”

Tbh, I didn't dig deep though. Just vibed this for the demo