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

Function happy_path_unpause

rpc/src/auth.rs:87–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 // Two deployments that share an admin key but differ in their chain
86 // identity (genesis hash and/or namespace).
87 fn scope_a() -> String {
88 alloy_primitives::hex::encode(pause_signature_domain([0x11; 32], b"net-a"))
89 }
90 fn scope_b() -> String {
91 alloy_primitives::hex::encode(pause_signature_domain([0x22; 32], b"net-b"))
92 }
93
94 fn sign(scope: &str, action: &str, timestamp_secs: u64, signer: &PrivateKeySigner) -> String {
95 let message = format!("{DOMAIN}:{scope}:{action}:{timestamp_secs}");
96 let sig = signer.sign_message_sync(message.as_bytes()).unwrap();
97 format!("0x{}", hex::encode(sig.as_bytes()))

Callers

nothing calls this directly

Calls 1

signFunction · 0.85

Tested by

no test coverage detected