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

Signed transactions for token minting module #47

Merged
merged 3 commits into from
Apr 29, 2024
Merged

Signed transactions for token minting module #47

merged 3 commits into from
Apr 29, 2024

Conversation

JohnChangUK
Copy link
Member

@JohnChangUK JohnChangUK commented Apr 15, 2024

Description

This module allows creating signed transactions which verify a creator has signed a message with the specified public key.

  • This is then used to verify creator signed transactions

Copy link
Collaborator

@jillxuu jillxuu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we modify this module in a way that its not just serving mint but also other ops? so prob

  1. rename to get rid of mint
  2. instead of creating a resource for proof challenge here, we should just pass in the challenge as bytes and verify that?

it will make this module a lot more flexible for different use cases

@JohnChangUK
Copy link
Member Author

can we modify this module in a way that its not just serving mint but also other ops? so prob

  1. rename to get rid of mint
  2. instead of creating a resource for proof challenge here, we should just pass in the challenge as bytes and verify that?

it will make this module a lot more flexible for different use cases

Good idea, have updated to do so!

token-minter/sources/modules/signed_transaction.move Outdated Show resolved Hide resolved
token-minter/sources/modules/signed_transaction.move Outdated Show resolved Hide resolved
@@ -0,0 +1,97 @@
module minter::signed_transaction {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: add a comment section above this comment to explain what this module is doing about proof challenge and proof data validation? and then prob share couple potential use cases on how signed txn can be utilized.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

token-minter/sources/modules/signed_transaction.move Outdated Show resolved Hide resolved
token-minter/sources/modules/signed_transaction.move Outdated Show resolved Hide resolved
Copy link
Collaborator

@jillxuu jillxuu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx for addressing these comments!

@JohnChangUK JohnChangUK merged commit db01776 into main Apr 29, 2024
0 of 7 checks passed
@JohnChangUK JohnChangUK deleted the signed-tx branch April 29, 2024 19:00
@JohnChangUK JohnChangUK restored the signed-tx branch April 29, 2024 19:00
@JohnChangUK JohnChangUK deleted the signed-tx branch April 29, 2024 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants