I want to improve my project with self custody wallet.
I’m understanding the logic but I have no experience with node.js or browserify. I could need some help at this point.
My main problem is how to sign a raw transaction on the client side.
Everything else is clear like adding only the public key to the user database entry and verify it with a small payment (to your self/ the given address) and submit the signed raw transaction to the mempool is no problem too.
But sign it client side makes me headache right now
Apologies for the late reply. Bitcoinjs now uses the psbt system for building transactions, and signing them. If you still need help, let me know how I can help.
FYI here are the litecoin mainnet constants you need to add to bitcoinjs:
Meanwhile I found a solution with a litecoinjs-lib.js
This script works with derived multisignature addresses. It also offers a psbt version which is called psmst, but not tryed yet.
First I found a solution with classic nested segwit address type, but adding a omnilite payload leaded into an error on submit to mempool.
Using a 2of2 multisig address solved that problem but makes it harder to restore that address.
Meanwhile I made an extension wallet which is able to handle omnilite C-class actions
(send and receive token, no create/mint)
and also coin control works which allows ordinals as well
As always the front-end design is a nightmare for me
You are welcome to test it out if you like.
It’s not published yet and I could need some critical feedback.
Most curious Im about the dedicated exchange which is build in omnilite.
I successfully tested the access to it via my extension