Skip to content

Create endpoint that receives a schema of verifiable randomness #7

@azixus

Description

@azixus

Is there a use case for me wanting an 8 bit unsigned, and an 8 bit signed in the same request?

It seems that batching supports getting an arbitrary number of the same type, but perhaps that's not the most common use case?

Consider an alternative where we could ask for arbitrary quantities of different types in the same request.

In this fantasy land, I might make a request where I specify my requirements in json:

{
  "api": "v1",
  "seed": "xyz",
  "request": [
    {
      "type": "uint8",
      "count": 5
    },
    {
      "type": "int16",
      "count": 2
    },
    ...
  ]
}

And receive a response like:

{
  "results": [
    {
      "type": "uint8",
      "data": [1,2,3,4,5]
    },
    {
      "type": "int16",
      "data": [6,7]
    },
    ...
  ]
}

If that's a reasonable use case, it might reduce our traffic, and therefore our firewall work + egressed data somewhat

Originally posted by @GlacierWalrus in #2 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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