Skip to main content

post_state_signature

Function post_state_signature 

Source
async fn post_state_signature(
    state: &Arc<RwLock<StateRelayServerState>>,
    headers: &HeaderMap,
    body: &[u8],
) -> Result<(), RelayError>
Expand description

Handle a POST to state/api/state: tries LCV3, then LCV2 (auto-downgrading to LCV1 if the signature verifies against the legacy scheme), then LCV1. Mirrors tide’s poststatesignature.