aboutsummaryrefslogtreecommitdiff
path: root/back-end/libs/NVault.Crypto.Secp256k1/src/LibSecp256k1.cs
diff options
context:
space:
mode:
Diffstat (limited to 'back-end/libs/NVault.Crypto.Secp256k1/src/LibSecp256k1.cs')
-rw-r--r--back-end/libs/NVault.Crypto.Secp256k1/src/LibSecp256k1.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/back-end/libs/NVault.Crypto.Secp256k1/src/LibSecp256k1.cs b/back-end/libs/NVault.Crypto.Secp256k1/src/LibSecp256k1.cs
index 5aeed00..f3afc33 100644
--- a/back-end/libs/NVault.Crypto.Secp256k1/src/LibSecp256k1.cs
+++ b/back-end/libs/NVault.Crypto.Secp256k1/src/LibSecp256k1.cs
@@ -82,6 +82,9 @@ namespace NVault.Crypto.Secp256k1
[SafeMethodName("secp256k1_ec_pubkey_serialize")]
internal delegate int PubKeySerialize(IntPtr ctx, byte* outPubKey, ulong* outLen, Secp256k1PublicKey* pubKey, uint flags);
+ [SafeMethodName("secp256k1_xonly_pubkey_parse")]
+ internal delegate int XOnlyPubkeyParse(IntPtr ctx, Secp256k1PublicKey* pubkey, byte* input32);
+
[SafeMethodName("secp256k1_ecdh")]
internal delegate int Ecdh(
IntPtr ctx,
@@ -143,6 +146,7 @@ namespace NVault.Crypto.Secp256k1
internal readonly SecKeyVerify _secKeyVerify;
internal readonly PubKeySerialize _pubKeySerialize;
internal readonly Ecdh _ecdh;
+ internal readonly XOnlyPubkeyParse _xOnlyPubkeyParse;
private readonly IRandomSource _randomSource;
/// <summary>
@@ -171,6 +175,7 @@ namespace NVault.Crypto.Secp256k1
_secKeyVerify = handle.DangerousGetMethod<SecKeyVerify>();
_pubKeySerialize = handle.DangerousGetMethod<PubKeySerialize>();
_ecdh = handle.DangerousGetMethod<Ecdh>();
+ _xOnlyPubkeyParse = handle.DangerousGetMethod<XOnlyPubkeyParse>();
//Store random source
_randomSource = randomSource;