crateApiGenerateSingleMaxRangeProof method
Future<BulletproofResult>
crateApiGenerateSingleMaxRangeProof({
- required PlatformInt64 value,
- required PlatformInt64 max,
- required int bitSize,
- required String domain,
override
Implementation
@override
Future<BulletproofResult> crateApiGenerateSingleMaxRangeProof(
{required PlatformInt64 value,
required PlatformInt64 max,
required int bitSize,
required String domain}) {
return handler.executeNormal(NormalTask(
callFfi: (port_) {
final serializer = SseSerializer(generalizedFrbRustBinding);
sse_encode_i_64(value, serializer);
sse_encode_i_64(max, serializer);
sse_encode_i_32(bitSize, serializer);
sse_encode_String(domain, serializer);
pdeCallFfi(generalizedFrbRustBinding, serializer,
funcId: 4, port: port_);
},
codec: SseCodec(
decodeSuccessData: sse_decode_bulletproof_result,
decodeErrorData: null,
),
constMeta: kCrateApiGenerateSingleMaxRangeProofConstMeta,
argValues: [value, max, bitSize, domain],
apiImpl: this,
));
}