Return outputs of frost_shares_gen on jni

This commit is contained in:
kngako 2024-08-19 23:58:15 +02:00
parent 6e578d43d7
commit be7f11d657

View File

@ -145,10 +145,27 @@ public object NativeSecp256k1 : Secp256k1 {
totalSigners, totalSigners,
ids33 ids33
) )
val shares = Array(totalSigners) { index ->
val startIndex = 0 + (index*32);
val endIndex = 32 + (index*32);
result.sliceArray(
startIndex..endIndex
)
}
val vssCommitment = Array(totalSigners) { index ->
val startIndex = 0 + (index*65);
val endIndex = 65 + (index*65);
result.sliceArray(
startIndex..endIndex
)
}
return Triple( return Triple(
emptyArray(), shares,
emptyArray(), vssCommitment,
pok64 pok64
) )
} }