gotosocial/vendor/codeberg.org/gruf
kim 326e04283a [feature] update proof-of-work to allow setting required rounds (#4186)
# Description

This updates our proof-of-work middleware, NoLLaMas, to work on a more easily configurable algorithm (thank you f0x for bringing this to my attention!). Instead of requiring that a solution with pre-determined number of '0' chars be found, it now pre-computes a result with a pre-determined nonce value that it expects the client to iterate up-to. (though with some level of jitter applied, to prevent it being too-easily gamed). This allows the user to configure roughly how many hash-encode rounds they want their clients to have to complete.

## Checklist

- [x] I/we have read the [GoToSocial contribution guidelines](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md).
- [x] I/we have discussed the proposed changes already, either in an issue on the repository, or in the Matrix chat.
- [x] I/we have not leveraged AI to create the proposed changes.
- [x] I/we have performed a self-review of added code.
- [x] I/we have written code that is legible and maintainable by others.
- [x] I/we have commented the added code, particularly in hard-to-understand areas.
- [x] I/we have made any necessary changes to documentation.
- [ ] I/we have added tests that cover new code.
- [x] I/we have run tests and they pass locally with the changes.
- [x] I/we have run `go fmt ./...` and `golangci-lint run`.

Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4186
Co-authored-by: kim <grufwub@gmail.com>
Co-committed-by: kim <grufwub@gmail.com>
2025-05-26 11:57:50 +02:00
..
go-bitutil [feature] update proof-of-work to allow setting required rounds (#4186) 2025-05-26 11:57:50 +02:00
go-bytesize update remaining gruf libraries relying on linkname (#3028) 2024-06-21 18:36:58 +00:00
go-byteutil [chore] bump go-byteutil v1.2.0 -> v1.3.0 (#3356) 2024-09-26 19:50:08 +00:00
go-cache/v3 update gruf / {go-cache, go-maps, go-kv} (#3361) 2024-09-27 10:26:50 +00:00
go-debug [performance] processing media and scheduled jobs improvements (#1482) 2023-02-13 18:40:48 +00:00
go-errors/v2 update remaining gruf libraries relying on linkname (#3028) 2024-06-21 18:36:58 +00:00
go-fastcopy update go-fastcopy to v1.1.3 (#3200) 2024-08-14 16:56:56 +00:00
go-fastpath/v2 [feature] add per-uri dereferencer locks (#2291) 2023-10-31 11:12:22 +00:00
go-ffmpreg bump ffmpreg to v0.6.7 (#3947) 2025-03-28 11:45:31 +00:00
go-iotools [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
go-kv update gruf / {go-cache, go-maps, go-kv} (#3361) 2024-09-27 10:26:50 +00:00
go-list [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00
go-mangler [chore]: Bump codeberg.org/gruf/go-structr from 0.9.0 to 0.9.6 (#3973) 2025-04-07 11:03:57 +01:00
go-maps update gruf / {go-cache, go-maps, go-kv} (#3361) 2024-09-27 10:26:50 +00:00
go-mempool [performance] update go-structr and go-mutexes with memory usage improvements (#2909) 2024-05-13 08:05:46 +00:00
go-mutexes [chore]: Bump codeberg.org/gruf/go-mutexes from 1.5.1 to 1.5.2 (#3976) 2025-04-07 11:04:45 +01:00
go-runners [bugfix] return 400 Bad Request on more cases of malformed AS data (#2399) 2023-11-30 16:22:34 +00:00
go-sched [chore] update go-sched pkg (#3357) 2024-09-26 19:23:41 +00:00
go-split [feature] support nested configuration files, and setting ALL configuration variables by CLI and env (#4109) 2025-05-06 15:51:45 +00:00
go-storage [chore] update direct Go dependencies (#4162) 2025-05-10 14:27:25 +00:00
go-structr [performance] rewrite timelines to rely on new timeline cache type (#3941) 2025-04-26 09:56:15 +00:00