-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error : only uncompressed keys are accepted post-segwit #1511
Comments
It looks like the error message you're getting is inaccurate. According to https://github.com/btcsuite/btcd/blob/master/txscript/engine.go#L587 and the segwit spec, keys must be compressed inside segwit. Make sure your pubkey is compressed! |
@JeremyRubin Thank you for the response, I have tried making it compressed, but couldn't get it to work still. Had to move to implement it in Java. |
I don't know anything about how competent the Java Bitcoin libraries are these days so it might make sense to wait until a maintainer/contributor of btcd can chime in on this issue; I believe btcd enjoys much more ecosystem support than java implementations I'm aware of. |
Yeah! But the Java implementation seems a bit straightforward. I think to continue with it, pending when a maintainer/contributor can help out with this issue. |
keys must be compressed - can you link to the implementation you're referencing? Is this Bitcoinj? |
`
func SignTransaction(redeemTx *wire.MsgTx, secret string, destination string, amount float64, utxos []dto.Utxo) error {
}`
The above is to spend UTXO from a segwit address to a receiving segwit address, I am not sure if the issue I am having is with the implement, but I keep getting : Only uncompressed keys are accepted post-segwit when the code execution gets to vm.Execute() failing to validate the signature.
The text was updated successfully, but these errors were encountered: