aboutsummaryrefslogtreecommitdiff
path: root/src/bech32.h
diff options
context:
space:
mode:
authorSamuel Dobson <dobsonsa68@gmail.com>2019-09-03 12:44:11 +1200
committerSamuel Dobson <dobsonsa68@gmail.com>2019-09-05 13:25:11 +1200
commit2457aea83c1f9fba708e2335bb197950bf0b6244 (patch)
treee35b2ff36c2f92c9f18d051711c292651c828188 /src/bech32.h
parent33f9750b1b86a705d092b0e1314ed15287c45239 (diff)
downloadbitcoin-2457aea83c1f9fba708e2335bb197950bf0b6244.tar.xz
Assert that the HRP is lowercase in Bech32::Encode
Diffstat (limited to 'src/bech32.h')
-rw-r--r--src/bech32.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bech32.h b/src/bech32.h
index 2e2823e974..fb39cd352b 100644
--- a/src/bech32.h
+++ b/src/bech32.h
@@ -19,7 +19,7 @@
namespace bech32
{
-/** Encode a Bech32 string. Returns the empty string in case of failure. */
+/** Encode a Bech32 string. If hrp contains uppercase characters, this will cause an assertion error. */
std::string Encode(const std::string& hrp, const std::vector<uint8_t>& values);
/** Decode a Bech32 string. Returns (hrp, data). Empty hrp means failure. */