model: support unmarshalling RIDs from string
hub stores list/repo/tracker RIDs as strings in its database, and I want
to return those as GQL IDs, not strings, in the upcoming GQL API. This
is not possible without this patch since those strings are not UUIDs but
marshalled ones.
Signed-off-by: Simon Martin <simon@nasilyan.com>
model: rename ID => RID, implement sql Valuer
As in "Resource" ID. I also changed the base32 alphabet to lowercase,
because I subjectively think it looks nicer.
Don't uppercase error messages
model: introduce ID type
Based on UUIDv7 but represented to users in a more compact base32 form,
though all of that are internal implementation details.
crypto: harden API surface
Make it explicit that expiration is not being tested with Decrypt, and
test that the expiration is meaningful with DecryptWithExpiration.
Drop leftover references to gql.sr.ht
model: import from gql.sr.ht