Thanks to visit codestin.com
Credit goes to github.com

Skip to content

FurlPay/furlpay-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Furlpay Rust SDK

Official Furlpay server-side SDK for Rust — stablecoin payments, wallets, and webhook signature verification.

Zero dependencies. HMAC-SHA256 is implemented in pure Rust, so webhook verification needs no OpenSSL. The HTTP transport is intentionally left to the integrator — bring reqwest, ureq, or anything else.

Install

cargo add furlpay

Verify webhooks

Signatures use the same t=<unix>,v1=<hmac-sha256-hex> scheme as the Node, Python, and Go SDKs, with a 5-minute replay tolerance.

use furlpay::{construct_event, WebhookError};

fn handle(body: &str, signature_header: Option<&str>, secret: &str) -> Result<(), WebhookError> {
    let event = construct_event(body, signature_header, secret)?;
    // signature is valid — safe to act on `event`
    Ok(())
}

Sign payloads (useful for testing your own endpoint):

let header = furlpay::sign_payload(r#"{"type":"payment.settled"}"#, "whsec_...", None);

Other SDKs

Language Package
Node.js / TypeScript @furlpay/furlpay-node
Python furlpay (PyPI)
Go github.com/furlpay/furlpay-go

API reference

The full OpenAPI 3.1 specification lives at furlpay/furlpay-openapi.

Security

Report vulnerabilities to [email protected] — do not open public issues.

License

MIT

About

Official Furlpay server-side SDK for Rust — stablecoin payments & dependency-free webhook verification.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages