title Ehash Issuance v3
participant ASIC
participant Proxy
participant Pool
participant Mint
participant Cashu Wallet
entryspacing 1.0
Cashu Wallet->Proxy:master locking pubkey
Proxy->Pool:open connection
loop poll loop
note over Cashu Wallet:generate locking keypair
Cashu Wallet<->Mint:look up quote ID by locking pubkey
Cashu Wallet<->Mint:query quote by ID
note over Cashu Wallet:generate blinded secrets
Cashu Wallet<->Mint:sweep ehash tokens
end
Pool-->Proxy:block template
Proxy->ASIC:block template
note over ASIC:share found
ASIC->>Proxy:submit a mining share
note over Proxy:generate child locking pubkey
Proxy->Pool:submit share & child pubkey
note over Pool:validate share
Pool->Mint:create quote UNPAID
note over Pool:validate block template
Pool->Mint:update quote PAID
Pool->Proxy:share accepted