Skip to content

Oracle: formalize randomness provider interface #578

@Otaiki1

Description

@Otaiki1

Build location

Work primarily in oracle/src/randomness. Keep related tests/docs beside that package unless this issue explicitly calls for a cross-package update.

Why this matters

The oracle should expose one interface for VRF, PRNG fallback, and future randomness providers.

What to build

  • Define provider interface for request validation, seed generation, proof generation, and verification metadata.
  • Adapt existing VRF/PRNG services to the interface.
  • Record provider type per randomness response.

Acceptance criteria

  • Tests cover provider selection and failure paths.
  • Submitter receives a provider-agnostic randomness result.

Suggested verification

cd oracle && npm run lint && npm run test && npm run build

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions