A temporary crate for testing out utilities I hope get merged into twilight-util.
Find a file
2023-03-04 21:47:15 -06:00
src implement Discord signature verification Tower Layer 2023-03-04 16:31:39 -06:00
.gitignore implement Discord signature verification Tower Layer 2023-03-04 16:31:39 -06:00
Cargo.toml add README 2023-03-04 21:47:15 -06:00
README.md add README 2023-03-04 21:47:15 -06:00

twilight-signature-validation

This library is meant as a temporary holding place for various approaches to doing ed25519 signature validation for webhook style Discord bots.

It should not be published to crates.io in its current state.

    let app = Router::new().route(
        "/",
        post(post_interaction)
            .layer(DiscordVerifierLayer::from_key_hex(b"<paste public key here>").unwrap())
    );