Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pkgs/id/src/hosted_binding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,13 @@ impl HostedBindingService {

/// The service attestation public key (32 bytes).
#[must_use]
/// Sign bytes with the service key for artefacts the service
/// itself must authenticate — the unkeyed-export manifest of
/// §6.1, produced when the user's key is unavailable.
pub fn sign_service_bytes(&self, bytes: &[u8]) -> [u8; 64] {
self.service_key.sign(bytes).to_bytes()
}

pub fn service_public_key(&self) -> [u8; 32] {
self.service_key.verifying_key().to_bytes()
}
Expand Down
Loading