cashscript
cashscript copied to clipboard
Add SLP support
CashScript is a leap forward in expressiveness for creating scripts. Now we need to be able to create advanced scripts for SLP tokens.
What would this look like in CashScript?
It's currently possible to manually inject the SLP OP_RETURN opcodes via creating a dedicated tx outout. Not sure if the compiler can do it on it's own, but should definitely be possible if combined with the SDK
It's currently possible to manually inject the SLP OP_RETURN opcodes via creating a dedicated tx outout. Not sure if the compiler can do it on it's own, but should definitely be possible if combined with the SDK
It does seem SLP requires a fundingWIF, which I'm not sure cashscript can generate, especially if it's a P2SH address and not the usual P2PKH address
Is the scope of this issue limited to being able to support an SLP transaction or some implementation details that are not defined here? Here is a working code reference for the SLP Genesis transaction for Type1 and NFT1 (Group + Child). Including multiple OP_RETURNS: https://github.com/cashkit/cashscript-slp
Nice, that's a great example! I think this issue is just a sort of placeholder for some form of better SLP support. I don't have a very clear idea on what that would look like. I added the OutputNullData
feature as a sort of first step towards this. I personally haven't really worked with SLP a lot, so I don't know what better support would look like. If you have any ideas, I'd love to hear them.
I think this issue can be closed with the upcoming CashTokens upgrade.
Yep, I agree 👍