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

Spend auth signature #5

Merged
merged 3 commits into from
Dec 23, 2024
Merged

Spend auth signature #5

merged 3 commits into from
Dec 23, 2024

Conversation

abenso
Copy link
Collaborator

@abenso abenso commented Dec 20, 2024

Add an API to retrieve the spend authorization signature

@abenso abenso requested a review from neithanmo December 20, 2024 20:30
Copy link
Member

@emmanuelm41 emmanuelm41 left a comment

Choose a reason for hiding this comment

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

Left just one comment to address

src/app.ts Outdated
return {
signature: signatureResponse.readBytes(signatureResponse.length()),
spendAuth_signature: spendAuthSignature
Copy link
Member

Choose a reason for hiding this comment

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

I think we are using camel case generally. Don't you think it is better to stick to that?

src/app.ts Outdated
@@ -46,6 +44,8 @@ export class PenumbraApp extends BaseApp {
SIGN: 0x02,
FVK: 0x03,
TX_METADATA: 0x04,
GET_SPEND_AUTH_SIGNATURES: 0x05,
GET_BINDING_SIGNATURES: 0x06,
Copy link
Collaborator

Choose a reason for hiding this comment

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

GET_DELEGATOR_SIGNATURES??

@abenso abenso merged commit e030e74 into dev Dec 23, 2024
2 checks passed
@abenso abenso deleted the feat/spend_auth_signature branch December 23, 2024 16:18
neithanmo added a commit that referenced this pull request Dec 23, 2024
* Feat/metadata (#4)

* Add tx metadata instruction and handle it correctly

* Remove address index from sign method

* not send metadata if it is empty

---------

Co-authored-by: abenso <[email protected]>

* Spend auth signature (#5)

* add spend auth and delegator vote signatures

---------

Co-authored-by: Natanael Mojica <[email protected]>
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.

3 participants