Component evidence
Generates HMAC webhook signatures for Twilio, Slack, LINE, and Meta platforms.
// Source: https://github.com/MarcoDotIO/OpenClawKit | License: MIT | Copyright 2026 OpenClawKit Contributors
// Provided via justclaw.it.com; keep this notice with the code.
import Foundation
#if canImport(CryptoKit)
import CryptoKit
#else
import Crypto
#endif
/// Webhook signature primitives shared by the native channel adapters.
///
/// Every channel that verifies inbound webhooks (Twilio SMS, Slack HTTP Events, LINE) signs with an
/// HMAC; these helpers compute the platform's exact signature string and compare signatures in
/// constant time (upstream `safeEqualSecret`). Backed by CryptoKit on Apple platforms and
/// swift-crypto on Linux.
public enum ChannelWebhookSignature {
/// Computes an HMAC-SHA1 authentication code (Twilio request signing).
/// - Parameters:
///
... (truncated -- full source via MCP)