Make padding skip clear in Base64URL encoding (#5176)

Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
pull/5124/head
Ernesto García 5 months ago committed by Hadrien Croubois
parent 6d27d87bb7
commit 7357540832
No known key found for this signature in database
GPG Key ID: B53810561A746A06
  1. 1
      contracts/utils/Base64.sol

@ -23,6 +23,7 @@ library Base64 {
/**
* @dev Converts a `bytes` to its Bytes64Url `string` representation.
* Output is not padded with `=` as specified in https://www.rfc-editor.org/rfc/rfc4648[rfc4648].
*/
function encodeURL(bytes memory data) internal pure returns (string memory) {
return _encode(data, _TABLE_URL, false);

Loading…
Cancel
Save