I'm facing an issue trying to create a child inscription. I keep getting this error when I try to send the transaction: sendrawtransaction RPC error: {"code":-26,"message":"mandatory-script-verify-flag-failed (Invalid Schnorr signature)"}.
I'm not sure where I went wrong. I found some code that I'm using here: https://github.com/leionion/bitcoinjs-lib-inscription-service-skeleton/blob/main/Image_Child_Inscription.ts.
Also, here’s a link to my question if anyone wants to check it out: https://bitcoin.stackexchange.com/questions/125518/i-cant-create-child-inscriptionnft-in-bitcoin-network-mandatory-script-ver.
I see your question receive -2 vote, so you may want to improve your question by reading How do I ask a good question?.
Consider asking your question on that GitHub repository.
I think your script fails because the child's inscription is in Entry 1's token instead of Entry 0, which is where the parent's inscription is spent. This breaks the Ordinals protocol requirement and Bitcoin cannot verify the parent-child link because the child's data is in a different Entry than the one that spends the parent's UTXO.
I don't know if Casey Rodarmor still works on Ordinals, but it wouldn't hurt to shoot an issue to the Ordinals github repository: https://github.com/rodarmor/ord
Generally speaking, it is better to use a specialized program for inscribing Ordinals. What you are doing is equivalent to creating multiple bitcoin transactions by hand.