01 · mint a note
Pay the mint's invoice
Call payInvoice(), verify the returned preimage against the invoice
payment hash, then claim and rotate the note. The preimage is the bearer
secret, so accepting the wrong one means accepting a worthless note.