From d7b2cd265da72577b444bf3c6dc56b6f81d7dff9 Mon Sep 17 00:00:00 2001
From: David Stainton <dstainton@elixxir.io>
Date: Thu, 29 Sep 2022 08:04:08 -0400
Subject: [PATCH] Add DeriveSecret method to PrivateKey

---
 binding.go | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/binding.go b/binding.go
index 986174d..c30c4e7 100644
--- a/binding.go
+++ b/binding.go
@@ -191,6 +191,11 @@ func NewEmptyPrivateKey() *PrivateKey {
 	return new(PrivateKey)
 }
 
+// DeriveSecret derives a shared secret.
+func (p *PrivateKey) DeriveSecret(publicKey *PublicKey) []byte {
+	return DeriveSecret(p, publicKey)
+}
+
 // String returns a string identifying
 // this type as a CTIDH private key.
 func (p *PrivateKey) String() string {
-- 
GitLab