Stamp hardening: refuse a peer raw put with no stamp in C#, TypeScript and Rust; Python replication (#175)

This commit is contained in:
Libby 2026-11-14 08:51:04 +00:00
commit 75188fdefa
36 changed files with 1043 additions and 45 deletions

View file

@ -1119,6 +1119,8 @@ namespace GameCult.Networking.Tests
foreach (var field in BlankRuleFields)
foreach (var times in new[] { 1, 3 })
{
// A storedAt must be a stamp: a non-blank one that is no stamp is not "a name" (write-receipt.md, Required fields).
if (!blank && field == "storedAt") continue;
var text = string.Concat(Enumerable.Repeat(char.ConvertFromUtf32(Convert.ToInt32(hex, 16)), times));
var rig = Build();
var wire = new Wire();