Skip to content

Miniscript fragment to check conditions on signed message #11

@luckysori

Description

@luckysori

We would be interested in an extension of this library to allow expressing a spending condition that looks like this:

  • Require message and signature on message with respect to oracle_pk.
  • Require decomposed message to meet some conditions e.g. first half is > fixed value; and second half is <= than a different fixed value.

This could look something like oracle(pk,gt(100),lte(50)). Obviously at this stage there are many questions to answer such as, how to divide the message, how many and what conditions can be checked etc. This is just a very basic idea.

The bigger questions are:

  • Do you have any plans to introduce a feature like this into the library?
  • Would you accept a contribution to the library that adds a feature like this?

Here's an example of the kind of Elements script behaviour we would like to be able to express using this library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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