mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 14:29:45 +00:00
rename frontend to web and update contributing guide (#2509)
* rename frontend to web and update contributing guide * rename this time * fix build * restructure rust code * update documentation * update descriptions * Update CONTRIBUTING.md Co-authored-by: J H <2364004+Blu-J@users.noreply.github.com> --------- Co-authored-by: Aiden McClelland <me@drbonez.dev> Co-authored-by: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com> Co-authored-by: J H <2364004+Blu-J@users.noreply.github.com>
This commit is contained in:
9
core/startos/src/util/crypto.rs
Normal file
9
core/startos/src/util/crypto.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
use ed25519_dalek::{SecretKey, EXPANDED_SECRET_KEY_LENGTH};
|
||||
|
||||
#[inline]
|
||||
pub fn ed25519_expand_key(key: &SecretKey) -> [u8; EXPANDED_SECRET_KEY_LENGTH] {
|
||||
ed25519_dalek_v1::ExpandedSecretKey::from(
|
||||
&ed25519_dalek_v1::SecretKey::from_bytes(key).unwrap(),
|
||||
)
|
||||
.to_bytes()
|
||||
}
|
||||
Reference in New Issue
Block a user