This commit is contained in:
Sudo-Ivan
2025-01-25 13:55:19 -06:00
parent 836e97b17d
commit cb1e4a1115
2 changed files with 65 additions and 30 deletions

View File

@@ -699,3 +699,13 @@ func (i *Identity) GetNameHash() []byte {
// Return first 10 bytes (NAME_HASH_LENGTH/8)
return fullHash[:NAME_HASH_LENGTH/8]
}
// GetEncryptionKey returns the X25519 public key used for encryption
func (i *Identity) GetEncryptionKey() []byte {
return i.publicKey
}
// GetSigningKey returns the Ed25519 public key used for signing
func (i *Identity) GetSigningKey() []byte {
return i.verificationKey
}