pub struct IbctKey {
pub key_id: String,
pub key_bytes: Vec<u8>,
}Expand description
A key entry in the IBCT key set.
Multiple entries allow key rotation: old keys are kept until all in-flight tokens signed with them expire.
Fields§
§key_id: StringUnique key identifier. Embedded in the token so the verifier can look it up.
key_bytes: Vec<u8>HMAC-SHA256 signing key (raw bytes, hex-encoded in config).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IbctKey
impl<'de> Deserialize<'de> for IbctKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IbctKey
impl RefUnwindSafe for IbctKey
impl Send for IbctKey
impl Sync for IbctKey
impl Unpin for IbctKey
impl UnsafeUnpin for IbctKey
impl UnwindSafe for IbctKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more