-
Notifications
You must be signed in to change notification settings - Fork 5
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
β¨ (signer-btc) [DSDK-472]: Implement update PSBT and extract transaction #607
β¨ (signer-btc) [DSDK-472]: Implement update PSBT and extract transaction #607
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
1 Skipped Deployment
|
a5b3341
to
a74037b
Compare
fe39d19
to
1fdb8fa
Compare
private readonly _args: ExtractTransactionTaskArgs, | ||
private readonly _valueParser: ValueParser, | ||
) {} | ||
run(): CommandResult<string, BtcErrorCodes> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[COULD] you could use HexaString
type instead of string
as you return a bufferToHexaString
Uint8Array.from([]), | ||
); | ||
|
||
if (signature.length != 64 && signature.length != 65) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[COULD] use const for 64
and 65
values
} | ||
|
||
function writePush(buf: ByteArrayBuilder, data: Uint8Array) { | ||
if (data.length <= 75) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[COULD] same for theses values if possible
packages/signer/signer-btc/src/internal/app-binder/task/ExtractTransactionTask.ts
Outdated
Show resolved
Hide resolved
packages/signer/signer-btc/src/internal/app-binder/task/ExtractTransactionTask.ts
Outdated
Show resolved
Hide resolved
packages/signer/signer-btc/src/internal/app-binder/task/ExtractTransactionTask.ts
Outdated
Show resolved
Hide resolved
packages/signer/signer-btc/src/internal/app-binder/task/ExtractTransactionTask.ts
Outdated
Show resolved
Hide resolved
packages/signer/signer-btc/src/internal/app-binder/task/ExtractTransactionTask.ts
Outdated
Show resolved
Hide resolved
packages/signer/signer-btc/src/internal/app-binder/task/ExtractTransactionTask.ts
Outdated
Show resolved
Hide resolved
packages/signer/signer-btc/src/internal/app-binder/task/UpdatePsbtTask.ts
Outdated
Show resolved
Hide resolved
packages/signer/signer-btc/src/internal/app-binder/task/UpdatePsbtTask.ts
Show resolved
Hide resolved
const signature = maybeSignature.mapOrDefault( | ||
(v) => v.data, | ||
Uint8Array.from([]), | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[COULD] since you already verified it at line 258, maybe you could just use something like maybeSignature.unsafeCoerce().data
packages/signer/signer-btc/src/internal/app-binder/task/UpdatePsbtTask.ts
Outdated
Show resolved
Hide resolved
packages/signer/signer-btc/src/internal/app-binder/task/UpdatePsbtTask.ts
Show resolved
Hide resolved
a74037b
to
3f01185
Compare
33b1043
to
eae62c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
π Description
sign_transaction.mp4
β Context
β Checklist
Pull Requests must pass CI checks and undergo code review. Set the PR as Draft if it is not yet ready for review.
π§ Checklist for the PR Reviewers