diff options
author | Samuel Dobson <dobsonsa68@gmail.com> | 2021-10-01 12:16:20 +1300 |
---|---|---|
committer | Samuel Dobson <dobsonsa68@gmail.com> | 2021-10-12 12:03:14 +1300 |
commit | b62b67e06cc406fdad68da4c091168fb5f11c1d4 (patch) | |
tree | 1c70b946c4c6c2003dc0186773bb4949e5fa0f8c /src/bech32.h | |
parent | 0b06e720c0182dee8b560d2e8d3891b036f63ea7 (diff) |
Add Bech32 error location function
Diffstat (limited to 'src/bech32.h')
-rw-r--r-- | src/bech32.h | 3 |
1 files changed, 3 insertions, 0 deletions
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<int>& error_locations); + } // namespace bech32 #endif // BITCOIN_BECH32_H |