createWitness method
BuMerkleWitness
createWitness(})
override
Witnesses positions at checkpointId for kind in context id and returns the witness; throws CryptoException on native failure.
Implementation
@override
BuMerkleWitness createWitness(
int id, {
required int kind,
required int checkpointId,
required List<int> positions,
}) {
return api
.createWitness(
id,
kind: kind,
checkpointId: checkpointId,
positions: positions,
)
.unwrapOrThrowCryptoError();
}