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.
We would be interested in an extension of this library to allow expressing a spending condition that looks like this:
messageandsignatureonmessagewith respect tooracle_pk.messageto 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:
Here's an example of the kind of Elements script behaviour we would like to be able to express using this library.