Method VerifySignature
- Namespace
- DSharpPlus.Net.InboundWebhooks
- Assembly
- DSharpPlus.dll
VerifySignature(ReadOnlySpan<byte>, string, string, string)
Verifies the signature of a http interaction.
public static bool VerifySignature(ReadOnlySpan<byte> body, string timestamp, string signingKey, string publicKey)
Parameters
bodyReadOnlySpan<byte>Raw http body
timestampstringTimestamp header sent by discord. TimestampHeaderName
signingKeystringSigning key sent by discord. SignatureHeaderName
publicKeystringPublic key of the application this interaction was sent. This key can be accessed at DiscordApplication. VerifyKey
Returns
- bool
Indicates if this signature is valid.