entropyxyz / programs

Source, toolchain, and examples for using programs on Entropy
https://docs.entropy.xyz/concepts/programs/
GNU Affero General Public License v3.0
19 stars 3 forks source link

Add support for running empty programs #36

Closed HCastano closed 9 months ago

HCastano commented 10 months ago

In https://github.com/entropyxyz/entropy-core/pull/433 the Relayer::register interface was changed so that a program would go from being an Option to a Vec<u8>.

In theory a user can register with an empty program, which would be equivalent to having a None program previously.

However, according to Peg's comment it doesn't look like the execution of an empty program is supported yet. I propose that we allow this but just make it a no-op, essentially allowing a user to jump straight to signature generation.

jakehemmerle commented 9 months ago

Closing since zero-length programs now error; interpretation of error (ie sign empty programs or not) is handled at core level.