mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-12-02 03:43:55 +01: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.