You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we should support both the new native backend as well as provide a fallback to the old wasm backend for the nodejs envrionment - tbd on how to do this
a potential solution would be to provide a new o1js package for this purpose (if we package both wasm and the native artefacts we almost double our package size - not good) - something like import { ... } from '@o1js/node-native' and import { ... } from '@o1js/node-wasm'
The text was updated successfully, but these errors were encountered:
it might be nicer to create an API where not all of o1js has to be split in two packages, but most of the current TS is still just o1js and the bindings are injected later:
import{setBindings}from'o1js'importnativeBindingsfrom'@o1js/native-bindings'setBindings(nativeBindings);// normal code uses 'o1js' imports
There are many cases when proving is not needed, for example, signature verifications, Poseidon hash calculations, tx building (NOT proving). It would make sense to keep the o1js library small to handle such cases and load big proving backend only if needed.
we should support both the new native backend as well as provide a fallback to the old wasm backend for the nodejs envrionment - tbd on how to do this
a potential solution would be to provide a new o1js package for this purpose (if we package both wasm and the native artefacts we almost double our package size - not good) - something like
import { ... } from '@o1js/node-native'
andimport { ... } from '@o1js/node-wasm'
The text was updated successfully, but these errors were encountered: