Skip to content

Commit

Permalink
updated doc
Browse files Browse the repository at this point in the history
  • Loading branch information
fboucquez committed Sep 9, 2024
1 parent 2eb70b7 commit 602fbda
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/bchaddr.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 602fbda

Please sign in to comment.