mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-10-17 23:31:42 +02:00
InvoiceProofBin is a normal Readable, so a malformed encoding must come back as a serialization error. The two secp keys, the ed25519 sender address and the memo were unwrapped or copied without a length check. Map them all to grin_ser errors, and take the proof type with a cast that cannot lose data rather than a fallible conversion.