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
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SachinMeier
Copy link
Member

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
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
Member 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
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