Finally trying out cashu via eNuts. Great experience, and I love the nostr integration. I'll have to read more about the protocol. Do tokens have the mint's address built in? Is the only way to move funds between mints via lightning?
Discussion
I donβt know the specifics of how another mint knows where to go if you redeem tokens from another mint, but I am pretty sure that redeeming at a second mint does just effectively tell the second mint to request a lightning redemption of the tokens from the first mint.
So yes, lightning is the only mechanism to actually move the value between mints.
π π€ π₯π«π₯
yep:
```
val base64token = cashuToken.replace("cashuA", "")
val cashu = jacksonObjectMapper().readTree(String(Base64.getDecoder().decode(base64token)))
val token = cashu.get("token").get(0)
val proofs = token.get("proofs")
val mint = token.get("mint").asText()
var totalAmount = 0L
for (proof in proofs) {
totalAmount += proof.get("amount").asLong()
}```