Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/It4innovations/hyperqueue
/ generate_key
Function
generate_key
crates/hyperqueue/src/transfer/auth.rs:6–8 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
4
const KEY_SIZE: usize = 32;
5
6
pub fn generate_key() -> SecretKey {
7
SecretKey::generate(KEY_SIZE).unwrap()
8
}
9
pub fn serialize_key(key: &SecretKey) -> String {
10
let bytes = key.unprotected_as_bytes();
11
hex::encode(bytes)
Callers
5
start_server
Function · 0.50
command_server_generate_access
Function · 0.50
test_status_directory_with_access_file
Function · 0.50
test_status_directory_with_symlink
Function · 0.50
test_store_load
Function · 0.50
Calls
1
generate
Function · 0.85
Tested by
3
test_status_directory_with_access_file
Function · 0.40
test_status_directory_with_symlink
Function · 0.40
test_store_load
Function · 0.40