docs/spec: document format of hash in pointer files

To avoid ambiguity, specify the format of the hash in pointer files.
This is consistent with what all existing implementations do.
This commit is contained in:
brian m. carlson 2019-12-09 22:04:05 +00:00
parent 99ef180eea
commit 692926b320
No known key found for this signature in database
GPG Key ID: 2D0C9BC12F82B3A1

@ -29,7 +29,8 @@ The required keys are:
simple string comparison on the version, without any URL parsing or simple string comparison on the version, without any URL parsing or
normalization. It is case sensitive, and %-encoding is discouraged. normalization. It is case sensitive, and %-encoding is discouraged.
* `oid` tracks the unique object id for the file, prefixed by its hashing * `oid` tracks the unique object id for the file, prefixed by its hashing
method: `{hash-method}:{hash}`. Currently, only `sha256` is supported. method: `{hash-method}:{hash}`. Currently, only `sha256` is supported. The
hash is lower case hexadecimal.
* `size` is in bytes. * `size` is in bytes.
Example of a v1 text pointer: Example of a v1 text pointer: