summaryrefslogtreecommitdiffstats
path: root/src/identity.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/identity.rs')
-rw-r--r--src/identity.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/identity.rs b/src/identity.rs
index 23c4f0f..6021a61 100644
--- a/src/identity.rs
+++ b/src/identity.rs
@@ -68,6 +68,11 @@ impl NodeKey {
self.signing.verifying_key().to_bytes()
}
+ /// The key itself: for what signs as SSH does (`federation::event::signed`).
+ pub(crate) fn signing(&self) -> &SigningKey {
+ &self.signing
+ }
+
pub(crate) fn sign(&self, message: &[u8]) -> [u8; 64] {
use ed25519_dalek::Signer;
self.signing.sign(message).to_bytes()