Skip to content

NUT-17: proof_state command should be specified outside of the methods #284

@gudnuf

Description

@gudnuf

Right now, the NUT-17 info config will look something like:

"nuts": {
    "17": {
      "supported": [
        {
          "method": "bolt11",
          "unit": "sat",
          "commands": [
            "bolt11_mint_quote",
            "bolt11_melt_quote",
            "proof_state"
            ]
        },
      ]
    }
}

where proof_state is defined in the methods and would be repeated for each method.

Instead, NUT-17 should be able to specify generic commands that are not method specific and only list them once.

I imaging something like this:

"nuts": {
  "17": {
    "global_commands": [ "proof_state" ],
    "method_support": [
      {
        "method": "bolt11",
        "unit": "sat", 
        "commands": [
          "bolt11_mint_quote",
          "bolt11_melt_quote"
        ]
      }
    ]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions