farcaster-rs 1.0.1

A rust crate to interface & interact with the Farcaster.xyz contracts & APIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// ## Auth
/// Holds authentication structs
pub mod auth;

use auth::bearer::Bearer;
use auth::secret::SecretToken;
use ethers::prelude::k256::ecdsa::SigningKey;
use ethers::signers::Wallet;

/// Farcaster account
/// holds account keypair and Merkle v2 API token
#[derive(Debug)]
pub struct Account {
    pub(crate) wallet: Wallet<SigningKey>,
    pub(crate) bearer_token: Option<Bearer>,
    pub(crate) session_token: Option<SecretToken>,
    pub(crate) token_duration_secs: Option<i64>,
}