Documentation
¶
Index ¶
- Variables
- func FillJavaScriptRegistration(state challenge.StateInterface, reg *challenge.Registration, ...) error
- func MakeChallengeCall(ctx context.Context, mod api.Module, in _interface.MakeChallengeInput) (*_interface.MakeChallengeOutput, error)
- func VerifyChallengeCall(ctx context.Context, mod api.Module, in _interface.VerifyChallengeInput) (_interface.VerifyChallengeOutput, error)
- type Parameters
- type Runner
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultParameters = Parameters{ VerifyProbability: 0.1, NativeCompiler: true, }
View Source
var ErrModuleNotFound = errors.New("module not found")
Functions ¶
func FillJavaScriptRegistration ¶ added in v0.5.0
func FillJavaScriptRegistration(state challenge.StateInterface, reg *challenge.Registration, parameters ast.Node) error
func MakeChallengeCall ¶
Types ¶
type Parameters ¶ added in v0.5.0
type Parameters struct { Path string `yaml:"path"` // Loader path to js/mjs file to use as challenge issuer Loader string `yaml:"js-loader"` // Runtime path to WASM wasip1 runtime Runtime string `yaml:"wasm-runtime"` Settings map[string]string `yaml:"wasm-runtime-settings"` NativeCompiler bool `yaml:"wasm-native-compiler"` VerifyProbability float64 `yaml:"verify-probability"` }
Click to show internal directories.
Click to hide internal directories.