Open dcousens opened 7 years ago
Options:
.witness
field for each input
, or.prevOutScript
/.prevOutType
for each input
The latter is probably better...
Hey, I will look at this soon, I am currently in need for coinselect to work on segwit :)
Which script types would like to support?
I could take the types from here (except for NONSTANDARD)
.script.length
is used now for estimation [if provided] - without it, it assumes P2PKH.
If you're implementation can pre-sign all inputs, but with fake/blank signatures [for security], then script.length
and an added reduction of byte length
over the witness
stack would be more than enough to do this.
Hm, but pre-signing all inputs with empty/fake privkeys will complicate things and needlessly slow down computation, when the inputs types usually have the same lengths anyway for the given type
Hm, but pre-signing all inputs with empty/fake privkeys will complicate things and needlessly slow down computation
Not necessarily, it should be no different then the approach we'd be taking here (pattern match, speculate byte length impact via a fake script/witness.
Resolved partially by https://github.com/bitcoinjs/coinselect/pull/22#discussion_r133176608 - but - the virtual size calculation isn't accounted for yet?
.witness
would need to be provided?
Is this issue being worked on? :)
Any news?
I don’t want to talk for current maintainers, but neither me or dcousens is in bitcoin business anymore
On Thu 13. 7. 2023 at 20:10, Evgeny @.***> wrote:
Any news?
— Reply to this email directly, view it on GitHub https://github.com/bitcoinjs/coinselect/issues/4#issuecomment-1634683699, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAZT4OYKJ2QO4HUWUQ3ZTTXQA2YNANCNFSM4CVUMZ6A . You are receiving this because you were assigned.Message ID: @.***>
What's happened?
I am here, but this repository is not a priority for me.
PRs and more importantly PR reviews are greatly appreciated and needed.
I made PR https://github.com/bitcoinjs/coinselect/pull/82 regarding this issue.
Perhaps base it off a
.witness
field in the inputs... with which case: