using System.Text.Json.Serialization; namespace Svrnty.CQRS.Altcha.MinimalApi; /// /// JSON projection of /// in the exact shape the /// altcha widget v3 /// expects from a challengeurl response. Property names are /// lowercased and challenge (no underscore) to match the widget. /// public sealed class AltchaChallengeDto { [JsonPropertyName("algorithm")] public required string Algorithm { get; init; } [JsonPropertyName("challenge")] public required string Challenge { get; init; } [JsonPropertyName("salt")] public required string Salt { get; init; } [JsonPropertyName("signature")] public required string Signature { get; init; } [JsonPropertyName("maxnumber")] public required uint MaxNumber { get; init; } }