From b62b67e06cc406fdad68da4c091168fb5f11c1d4 Mon Sep 17 00:00:00 2001 From: Samuel Dobson Date: Fri, 1 Oct 2021 12:16:20 +1300 Subject: Add Bech32 error location function --- src/bech32.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/bech32.h') diff --git a/src/bech32.h b/src/bech32.h index e9450ccc2b..f39d99b641 100644 --- a/src/bech32.h +++ b/src/bech32.h @@ -44,6 +44,9 @@ struct DecodeResult /** Decode a Bech32 or Bech32m string. */ DecodeResult Decode(const std::string& str); +/** Return the positions of errors in a Bech32 string. */ +std::string LocateErrors(const std::string& str, std::vector& error_locations); + } // namespace bech32 #endif // BITCOIN_BECH32_H -- cgit v1.2.3