createWithFfi static method

ScTransactionBuilder createWithFfi(
  1. DynamicLibrary library
)

Creates a builder backed by the native Go FFI bridge (ScGoFfiBridge), which is much faster. The caller supplies an already-loaded library (e.g. DynamicLibrary.open(path)) built for the current platform — see lib/src/forked_lib/sia-wasi/build.sh; this package does not bundle one.

Implementation

static ScTransactionBuilder createWithFfi(DynamicLibrary library) {
  return ScTransactionBuilder(wasmBridge: ScGoFfiBridge(library));
}