MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / to_bytes

Method to_bytes

src/ssh-util/src/keys.rs:249–251  ·  view source on GitHub ↗

Serializes the key pair set to an unspecified encoding. You can deserialize a key pair set with [`SshKeyPairSet::deserialize`].

(&self)

Source from the content-addressed store, hash-verified

247 ///
248 /// You can deserialize a key pair set with [`SshKeyPairSet::deserialize`].
249 pub fn to_bytes(&self) -> Zeroizing<Vec<u8>> {
250 Zeroizing::new(serde_json::to_vec(self).expect("serialization of key_set cannot fail"))
251 }
252
253 /// Deserializes a key pair set that was serialized with
254 /// [`SshKeyPairSet::serialize`].

Callers 8

rotate_keys_ensureMethod · 0.45
assert_success_responseFunction · 0.45
run_testsFunction · 0.45
test_password_auth_httpFunction · 0.45
fingerprintMethod · 0.45

Calls 1

expectMethod · 0.80

Tested by 4

assert_success_responseFunction · 0.36
run_testsFunction · 0.36
test_password_auth_httpFunction · 0.36