Event JSON
{
"id": "98e082cc34db8fa2ccb48a8126352966b23c9ecc763f9d405df3163da104c085",
"pubkey": "d3052ca3e3d523b1ec80671eb1bba0517a2f522e195778dc83dd03a8d84a170e",
"created_at": 1737040889,
"kind": 1,
"tags": [
[
"e",
"e3a1db0a43887333cb004eb71ee156e5c571b532c26c0fe9f69358b3376000dc",
"wss://ditto.pub/relay",
"root",
"d3052ca3e3d523b1ec80671eb1bba0517a2f522e195778dc83dd03a8d84a170e"
],
[
"e",
"f758f951bdb476a433c6e4866045a284e16c5005e95920a22b9a389938077db4",
"wss://ditto.pub/relay",
"reply",
"ccaa58e37c99c85bc5e754028a718bd46485e5d3cb3345691ecab83c755d48cc"
],
[
"p",
"ccaa58e37c99c85bc5e754028a718bd46485e5d3cb3345691ecab83c755d48cc",
"wss://ditto.pub/relay"
],
[
"r",
"https://github.com/rust-bitcoin/rust-bitcoin/blob/master/units/src/amount/signed.rs#L84"
],
[
"r",
"https://github.com/cashubtc/cdk/blob/main/crates/cashu/src/amount.rs#L32"
]
],
"content": "Thanks, Peter! I didn't know you were a rust dev. 🦀\n\nI think you are referring to the SignedAmount type in bitcoin-rust: https://github.com/rust-bitcoin/rust-bitcoin/blob/master/units/src/amount/signed.rs#L84\n\ncdk defines it's own amount type: https://github.com/cashubtc/cdk/blob/main/crates/cashu/src/amount.rs#L32\n\nThis `Amount` is independent of the `CurrencyUnit` type so you can use it for bitcoin, stablecoins, beefbux or whatever. I'm using it to track difficulty of mining shares.",
"sig": "92e4a455272613399e472ad7a35bce4554895e45f39322e5155b8a9b813adb4e65886183f27e347424bbb1f3f6eca3741327508fbadcc8f94eaf88c94a402212"
}