Skip to main content
Research Preview — The plugin system is under active development.

Plugins

The Astral SDK provides an extensible plugin system for integrating proof-of-location systems. Plugins implement a standard interface and are registered with the SDK at startup. The StampsModule and ProofsModule then orchestrate across registered plugins.

LocationProofPlugin interface

Every plugin implements this interface. All methods are optional — plugins implement what makes sense for their environment and data source.

Method responsibilities

MethodPurposeWhen to implement
collect()Gather raw signals from sensors/APIsPlugin can actively collect evidence
create()Parse signals into an unsigned stampPlugin produces structured location data
sign()Add cryptographic signature to stampPlugin has its own signing mechanism
verify()Check stamp internal validityPlugin can verify its own stamps

Runtime type


PluginRegistry API

register()

Register a plugin with the SDK. Validates runtime compatibility and throws if the current environment is not supported.

get()

Get a plugin by name. Throws if not found.

has()

Check if a plugin is registered.

list()

List metadata for all registered plugins.

all()

Get all registered plugin instances.

withMethod()

Find plugins that implement a specific method.

Properties


Plugin status

PluginPackageStatuscollectcreatesignverify
MockBuilt into SDKCompleteYesYesYesYes
ProofMode@location-proofs/plugin-proofmodeAlphaComing soonYesYes
WitnessChain@location-proofs/plugin-witnesschainIn developmentComing soonComing soonComing soonComing soon

Plugin details

See the Plugins section for detailed documentation on each plugin.

MockPlugin

Built into the SDK for testing and development. Runs in all environments.
See MockPlugin documentation for full details.

How to write a custom plugin

Implement the LocationProofPlugin interface with whichever methods your system supports, then register with astral.plugins.register(). See Building a custom plugin for the complete guide with examples and testing patterns.

Next: Compute module

Geospatial computation methods