RFC 7049, section 4.1 describes correct JSON encoding for byte strings

This commit is contained in:
Jean-Paul Calderone 2021-09-03 12:33:07 -04:00
parent 8fe9532faf
commit 78a1d65b78

View File

@ -380,8 +380,7 @@ then the expiration time of that lease will be changed to 31 days after the time
If it does not match an existing lease
then a new lease will be created with this ``renew-secret`` which expires 31 days after the time of this operation.
The renew and cancel secrets must be 32 bytes long
(or in the case of JSON encoding they must UTF-8 encode to 32 bytes).
The renew and cancel secrets must be 32 bytes long.
The server treats them as opaque values.
:ref:`Share Leases` gives details about how the Tahoe-LAFS storage client constructs these values.