Fix assertion in CKey::SignCompact #15299

pull promag wants to merge 1 commits into bitcoin:master from promag:2019-01-ckey-signcompact changing 1 files +1 −1
  1. promag commented at 3:01 PM on January 31, 2019: member

    Fixes #15286.

  2. Fix assertion in CKey::SignCompact 3617f11739
  3. laanwj commented at 3:09 PM on January 31, 2019: member

    utACK 3617f117394285c87c395a0ccc92941977f97019

  4. practicalswift commented at 3:54 PM on January 31, 2019: contributor

    utACK 3617f117394285c87c395a0ccc92941977f97019

    This is why I love [[nodiscard]] :-)

  5. laanwj merged this on Jan 31, 2019
  6. laanwj closed this on Jan 31, 2019

  7. laanwj referenced this in commit 4b6673d382 on Jan 31, 2019
  8. maaku commented at 6:20 PM on January 31, 2019: contributor

    Already merged, but FWIW this is just as redundant. secp256k1_ecdsa_recoverable_signature_serialize_compact always returns 1; the serialization function semantics are that they never fail. No check is required.

  9. laanwj commented at 6:27 PM on January 31, 2019: member

    secp256k1_ecdsa_recoverable_signature_serialize_compact always returns 1; the serialization function semantics are that they never fail. No check is required.

    That's true—however, as long as it has a return value, I think it's correct to check it. It might start to do error handling in the future.

  10. jasonbcox referenced this in commit 0c7574e088 on Oct 1, 2020
  11. PastaPastaPasta referenced this in commit 15840af8b7 on Jun 27, 2021
  12. PastaPastaPasta referenced this in commit 924794db7a on Jun 28, 2021
  13. PastaPastaPasta referenced this in commit 5d1d202bc0 on Jun 28, 2021
  14. PastaPastaPasta referenced this in commit 8846f79220 on Jun 29, 2021
  15. DrahtBot locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 21:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me