Overview
The ADAPT native wrapper is an implementation of the ADAPT wrapper that hosts the ADAPT evaluation environment using the native node.js binding. This utility is used to run an ADAPT node as part of a Linux server, for example.
This topic describes ADAPT wrapper details specific to the native binding. Reading the ADAPT wrapper overview first will give you a much better understanding of this topic.
The native wrapper uses the native N-API backend shipped as @adapt-toolkit/sdk-native, automatically selected by @adapt-toolkit/sdk when running under Node.js.
The native wrapper enables running ADAPT packets as a standalone server, with no direct user interactions. Thus, features such as verification requests are not supported.
The native build uses the sodium library for its cryptographically secure random generator.
To run ADAPT on a Linux server, use the native ADAPT wrapper. The wrapper script’s TypeScript source lives at typescript/sdk/src/utilities/executables/adapt_wrapper_native.ts in the adapt-toolkit/adapt repository, and ships as adapt_wrapper_native.js inside @adapt-toolkit/sdk (dist/utilities/executables/adapt_wrapper_native.js).
For usage instructions, refer to the ADAPT wrapper usage help.