Skip to content

How to issue a capability token

A capability token is a signed credential that grants a device, service, or session access to a specific platform capability. Tokens are Ed25519-signed, self-describing, and time-bounded. Issuing a token means generating a signed credential using the platform's key material and delivering it to the recipient. This guide covers single-token issuance for a device or service.

For the authorization model that capability tokens operate within, see machine-based-auth. For the full pairing flow that culminates in a token, see pair-a-new-device.

Prerequisites

  • Administrator access to the platform's key issuance service (or the tool-wallet binary if issuing via wallet integration)
  • The recipient's public key or verified device identity
  • Knowledge of which capability scope is being granted (INPUT, USER, READ, or a named service scope)

Step 1: Identify the capability scope

Capability tokens carry a scope field that restricts what the holder can do. Before issuing, decide the scope:

Scope Grants
READ Read-only access to public-facing data; no ledger writes
USER Standard session access; can read entity data, submit queries
INPUT Full operator access; can write to WORM ledger, trigger F12 Input Machine
service:<name> Named service-to-service scope; restricts the token to a specific service API

Grant the minimum scope that satisfies the use case. Tokens cannot be narrowed after issuance — issue a new token with a narrower scope if the original is too broad.

Step 2: Obtain the recipient's public key

The recipient generates an Ed25519 keypair on their device and provides the public key. The public key is a 32-byte value, typically encoded as base64 or hex.

For a PPN node, the public key is generated during device initialisation and available via:

service-vm-host --print-pubkey

For an application session, the public key is generated by the platform pairing tool at pairing time and stored in the device's local key store.

Step 3: Issue the token

Call the token issuance endpoint with the recipient's public key and the intended scope:

curl -X POST http://<issuance-service-host>:<port>/v1/tokens \
  -H "Authorization: Bearer <admin-token>" \
  -H "Content-Type: application/json" \
  -d '{
    "subject_pubkey": "<recipient-base64-pubkey>",
    "scope": "INPUT",
    "expires_in_seconds": 86400
  }'

The service returns a signed token payload. The token is a self-contained JSON structure signed over its fields with the platform's Ed25519 signing key. Copy the full token value — it is not stored server-side after issuance.

Step 4: Deliver the token to the recipient

Deliver the signed token payload to the recipient through a trusted channel. The recipient loads the token into their device's local key store:

os-console --load-token <token-payload>

Or for a service:

export PLATFORM_TOKEN=<token-payload>

The token is verified at every API call by checking the Ed25519 signature against the platform's published public key.

Step 5: Verify the token is active

After the recipient loads the token, confirm access by checking the console status bar (scope should show the expected tier) or by querying the token verification endpoint:

curl -X POST http://<issuance-service-host>:<port>/v1/tokens/verify \
  -H "Content-Type: application/json" \
  -d '{"token": "<token-payload>"}'

A valid token returns the scope, expiry, and subject public key. An invalid signature or expired token returns a 401 response with a rejection reason.

Key takeaways

  • Tokens are Ed25519-signed and self-contained — the issuer does not need to store them after delivery
  • Grant the minimum scope; tokens cannot be narrowed after issuance
  • Token delivery must use a trusted channel — the token itself proves the holder holds the private key, but delivery determines who receives it
  • The platform's token verification endpoint can confirm a token's validity without a live session

See also

Important Information

Important Information

Corporate structure. PointSav Digital Systems ("PointSav") is a trade name of Woodfine Capital Projects Inc. ("Woodfine"). PointSav does not itself offer, sell, or solicit any security. Any securities offering associated with Woodfine's real-property direct-hold solutions is made exclusively by Woodfine, and only by means of the applicable Private Placement Memorandum.

No investment advice. This wiki's content is provided for engineering, operational, research, and development purposes. Nothing on this wiki constitutes investment advice or a solicitation to invest in any Woodfine partnership or direct-hold solution.

Intellectual property. The PointSav name, trade name, wordmark, and marks, together with all current and future PointSav- and Totebox-branded products, services, and offerings — and the software, source code, documentation, design system, and all related materials — are proprietary to Woodfine and its affiliates, except for components identified as open source. No rights are granted except as expressly set out in a written license or agreement. See TRADEMARK.md in this repository for the full trademark notice.

Open source components. Portions of the platform are made available under permissive open-source licenses identified in the accompanying repository. Use of those components is governed by their respective license terms.

No warranty; informational use. Content on this wiki is provided for general informational purposes only and does not constitute a representation, warranty, or commitment with respect to product functionality, availability, pricing, or roadmap. Some articles describe planned or intended features, capabilities, and milestones — language such as "planned," "intended," "targeted," "may," and "expected" marks this forward-looking content, which is subject to change and does not constitute a commitment regarding future performance.

Confidentiality. Where an article describes an operational or deployment detail that is not intended for public disclosure, that article is not published on this wiki. Content here is general-purpose engineering documentation, not customer-specific configuration.

Jurisdiction. Woodfine Capital Projects Inc. is organized in British Columbia, Canada. References to the Sovereign Data Foundation on this wiki describe a planned or intended initiative only, not a current equity holder or active governance body.

Changes to this notice. PointSav may update this notice from time to time; the version posted on this page governs.

Not a filing system. This wiki is not a securities filing system, an electronic disclosure repository, or a substitute for SEDAR+ or any other regulatory filing system. Formal securities filings are made through the applicable regulatory filing system, not through this wiki.

Full disclaimer. This notice supplements, and does not replace, the full Disclaimers article. In the event of any conflict, the full Disclaimers article governs.

Read the full disclaimer →