Skip to content
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

SignParameter作成時、signatureを自動チェックしたい #167

Open
k-matsuzawa opened this issue Aug 15, 2020 · 1 comment
Open
Labels
Epic epic story item prio:low low priority

Comments

@k-matsuzawa
Copy link
Collaborator

k-matsuzawa commented Aug 15, 2020

Overview

  • SignParameter作成時、signatureがder encoded済みかどうかで処理を分ける必要がある。
    • サイズで分かる範囲なので、自動チェックを行いたい。
    • Verifyでは自動チェック済み。
    • 署名情報はSignatureと特定できるAPIであれば自動で無効化したい。(PubkeyHashSignとか)
    • signatureを特定できない(ByteDataのケースが考えうる)ものについては、SignParameterの作成APIを定義して、その中でセットしたい。
    • 運用ケース上、use_der_encodeがtrueだった場合にfalseへと補正するようにする。逆のケースはsighashTypeが漏れる可能性から補正は望ましくない。
      • signature、sighashTypeの両方を引数に指定している場合はtrue/false自体を決める形でOK。
    • go, c#, c++(C-API) それぞれで対応する。jsは不要。

Completion condition

  • DerEncode指定フラグの自動設定ができること。
@k-matsuzawa k-matsuzawa added the Epic epic story item label Aug 15, 2020
@k-matsuzawa
Copy link
Collaborator Author

taprootでは対応が不要なため、今後どうするかは検討。

@k-matsuzawa k-matsuzawa added the prio:low low priority label Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic epic story item prio:low low priority
Projects
None yet
Development

No branches or pull requests

1 participant