Fix for handling ids33 in JNI
This commit is contained in:
@@ -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
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user