From 602fbda4ce06e49e9b4e81dea95633b7ed4e39df Mon Sep 17 00:00:00 2001 From: fboucquez Date: Mon, 9 Sep 2024 10:54:54 -0300 Subject: [PATCH] updated doc --- src/bchaddr.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/bchaddr.js b/src/bchaddr.js index 0f1b56a..7ebb223 100644 --- a/src/bchaddr.js +++ b/src/bchaddr.js @@ -177,8 +177,11 @@ function decodeAddress (address) { } /** - * Length of a valid base58check encoding payload: 1 byte for - * the version byte plus 20 bytes for a RIPEMD-160 hash. + * Lengths of a valid base58check encoding payload: 1 byte for + * the version byte plus the number of bytes for a RIPEMD-160 hash. + * + * Source: https://github.com/bitcoincashorg/bitcoincash.org/blob/master/spec/cashaddr.md + * * @private */ var BASE_58_CHECK_PAYLOAD_LENGTHS = [21, 25, 29, 33, 41, 49, 57, 65]