ionio-lang / ivy-elements

Fork of Ivy Language to write Elements Smart Contracts
https://ionio-lang.org
MIT License
0 stars 3 forks source link

Add `checkSigFromStack()` function | OP_CSFS opcodes #11

Open altafan opened 2 years ago

altafan commented 2 years ago

A bunch of new opcodes needs to be added to ionio, starting from OP_CHECKSIGFROMSTACK|VERIFY for singing/verifying an arbitrary signature on the stack.

tiero commented 2 years ago

suggestion: should looks like this syntax wise checkSigFromStack(sig,message,pubkey)

altafan commented 2 years ago

looking into #1 is an excellent starting point for this. We might need to add just some checks but the work is pretty much done there.