Skip to content

feat(cast mktx --raw-unsigned): add way to accept signatures to build a transaction #10167

@AdvayAgrawal

Description

@AdvayAgrawal

Component

Cast

Describe the feature you would like

for reference, this is what i wish to achieve using foundry tools
https://medium.com/@LucasJennings/a-step-by-step-guide-to-generating-raw-ethereum-transactions-c3292ad36ab4

Thanks to the newly introduced --raw-unsigned flag, I am able to create a raw RLP transaction, hash it and sign it using cast wallet sign

what is left is to be able to use the signature to create a new RLP transaction, which now includes the created signature using cast mktx to create a raw ethereum transaction

As per the medium article reference, Step 4 is to be tackled.

Hope this was enough information, let me know if this is feasable
Thanks

Additional context

No response

Activity

AdvayAgrawal

AdvayAgrawal commented on Mar 25, 2025

@AdvayAgrawal
Author

hi @zerosnacks. Is this feature feasible?

added
first issueA good way to start contributing
C-castCommand: cast
and removed
T-needs-triageType: this issue needs to be labelled
on Mar 25, 2025
zerosnacks

zerosnacks commented on Mar 25, 2025

@zerosnacks
Member

Yes it is, we've marked it as a good first issue

cc @yash-atreya

changed the title [-]Feature request: Add field in `cast mktx --raw-unsigned` to accept signatures to build an ethereum transaction[/-] [+]feat(`cast mktx --raw-unsigned`): add way to accept signatures to build an ethereum transaction[/+] on Mar 25, 2025
changed the title [-]feat(`cast mktx --raw-unsigned`): add way to accept signatures to build an ethereum transaction[/-] [+]feat(`cast mktx --raw-unsigned`): add way to accept signatures to build a transaction[/+] on Mar 25, 2025
AdvayAgrawal

AdvayAgrawal commented on Mar 25, 2025

@AdvayAgrawal
Author

great, glad to hear that. Thanks @zerosnacks

A-y-ush

A-y-ush commented on Mar 26, 2025

@A-y-ush

Hi, @zerosnacks is this issue available to work on?
I wanna know if I understand the problem correctly
When we create an unsigned transaction using the cast mktx command without the --raw-unsigned flag, the transaction is EIP-2718 encoded. During this time, it gets both signed and encoded.
But in the case of using the --raw-unsigned flag, the transaction misses the step of RLP encoding too along with the signing part.
Am I understanding this correct?

AdvayAgrawal

AdvayAgrawal commented on Apr 21, 2025

@AdvayAgrawal
Author

hi @zerosnacks @yash-atreya ,

Just wanted to know an update on this, has this issue been resolved, or is there a linked PR?

yash-atreya

yash-atreya commented on Apr 21, 2025

@yash-atreya
Member

hi @zerosnacks @yash-atreya ,

Just wanted to know an update on this, has this issue been resolved, or is there a linked PR?

Hey, would you like to submit a PR for this?

4 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-castCommand: castT-featureType: featurefirst issueA good way to start contributing

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @grandizzy@yash-atreya@Ayushdubey86@AdvayAgrawal@zerosnacks

      Issue actions

        feat(`cast mktx --raw-unsigned`): add way to accept signatures to build a transaction · Issue #10167 · foundry-rs/foundry