Return outputs of frost_shares_gen on jni
This commit is contained in:
parent
6e578d43d7
commit
be7f11d657
@ -145,10 +145,27 @@ public object NativeSecp256k1 : Secp256k1 {
|
||||
totalSigners,
|
||||
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(
|
||||
emptyArray(),
|
||||
emptyArray(),
|
||||
shares,
|
||||
vssCommitment,
|
||||
pok64
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user