Expand description
Zone RPC auth wire format, mirrored from tempoxyz/zones at a1c15e9f.
The signature is a Tempo transaction signature over the token digest. tempoxyz/tempoβs zone
RPC accepts configurable account (0x05) signatures from #9045; see authenticate_token in
https://github.com/tempoxyz/tempo/blob/c8b89f9b6d9f011a8a277ab431183b2b105c4af7/crates/zones/rpc/src/server.rs.
Re-exportsΒ§
use super::signer::ZoneSigner;πuse alloy_primitives::B256;πuse alloy_primitives::hex;πuse alloy_primitives::hex;πuse alloy_primitives::keccak256;πuse eyre::Result;πuse std::time::SystemTime;πuse std::time::UNIX_EPOCH;π
ConstantsΒ§
- HEADER π
FunctionsΒ§
- sign_
token π - Sign a short-lived token as
signer, seeZoneSigner::sign_token_digest. - token_
fields π