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

update adapters to provide a verify function for custom hashing functions #437

Open
frankiebee opened this issue Dec 9, 2024 · 0 comments
Assignees

Comments

@frankiebee
Copy link
Collaborator

frankiebee commented Dec 9, 2024

For custom hashing function signatures to be verified if the hashing function for the program is a custom one we will now need the adapter to name the hashing algorithm and export a verify function that meets the spec.

// some adapter file
export const HASHING_ALGORITHM = 'sha256'
export function verify (sig): Promise<boolean> {}

the verify functions provided by adapters will be under entropy.sign.adapters[type].verify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant