Fix for handling ids33 in JNI

This commit is contained in:
kngako
2024-08-21 21:35:27 +02:00
parent e6cba2b505
commit d74895079d
8 changed files with 79 additions and 50 deletions

View File

@@ -272,6 +272,7 @@ public object NativeSecp256k1 : Secp256k1 {
override fun frostNonceProcess(
publicNonces: Array<ByteArray>,
threshold: Int,
msg32: ByteArray,
publicKey: ByteArray,
id33: ByteArray,
@@ -282,7 +283,7 @@ public object NativeSecp256k1 : Secp256k1 {
return Secp256k1CFunctions.secp256k1_frost_nonce_process(
Secp256k1Context.getContext(),
publicNonces,
publicNonces.size,
threshold,
msg32,
publicKey,
id33,
@@ -324,12 +325,12 @@ public object NativeSecp256k1 : Secp256k1 {
)
}
override fun frostPartialSignatureAggregate(session: ByteArray, partialSignatures: Array<ByteArray>): ByteArray {
override fun frostPartialSignatureAggregate(session: ByteArray, partialSignatures: Array<ByteArray>, threshold: Int): ByteArray {
return Secp256k1CFunctions.secp256k1_frost_partial_sig_agg(
Secp256k1Context.getContext(),
session,
partialSignatures,
partialSignatures.size
threshold
)
}