MCPcopy Create free account
hub / github.com/SeismicSystems/summit / sign

Function sign

rpc/src/auth.rs:70–74  ·  view source on GitHub ↗
(action: &str, timestamp_secs: u64, signer: &PrivateKeySigner)

Source from the content-addressed store, hash-verified

68 .recover_address_from_msg(message.as_bytes())
69 .map_err(|_| RpcError::InvalidSignature)?;
70
71 if &recovered != expected {
72 return Err(RpcError::InvalidSignature);
73 }
74
75 Ok(())
76}
77

Callers 10

happy_path_pauseFunction · 0.85
happy_path_unpauseFunction · 0.85
rejects_stale_timestampFunction · 0.85
rejects_wrong_signerFunction · 0.85
make_finalizationFunction · 0.85
make_finalizationFunction · 0.85
make_notarizationFunction · 0.85

Calls

no outgoing calls

Tested by 8

happy_path_pauseFunction · 0.68
happy_path_unpauseFunction · 0.68
rejects_stale_timestampFunction · 0.68
rejects_wrong_signerFunction · 0.68
make_finalizationFunction · 0.68