Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

WIP: event signature validation#8

Open
SachinMeier wants to merge 2 commits into
masterfrom
sachin--event-signature-validation
Open

WIP: event signature validation#8
SachinMeier wants to merge 2 commits into
masterfrom
sachin--event-signature-validation

Conversation

@SachinMeier
Copy link
Copy Markdown

Add Schnorr signature validation using bitcoinex library.

@SachinMeier SachinMeier changed the title initial event signature validation WIP: event signature validation Jan 17, 2023

:crypto.hash(:sha256, serialized_event)
serialized_event
|> Bitcoinex.Utils.sha256()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why use Bitcoinex here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I thought it would be simpler to have Bitcoinex handle all the crypto-related functions. Should we switch it back?

@leishman
Copy link
Copy Markdown
Member

We'll need to update the factory module used by tests to generate test events once the actual signature validation logic is added

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants