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

Add a hashes endpoint #600

Merged
merged 2 commits into from
Jan 22, 2024
Merged

Add a hashes endpoint #600

merged 2 commits into from
Jan 22, 2024

Conversation

JesseAbram
Copy link
Member

Adds a /hashes endpoint that returns all supported hashes by node

Copy link

vercel bot commented Jan 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
entropy-core ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 19, 2024 9:43pm

Copy link
Contributor

@ameba23 ameba23 left a comment

Choose a reason for hiding this comment

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

This looks fine. I guess the available hashing algorithms will always be the same for a given release of entropy. But its anyway useful to make this info available.

@@ -15,6 +15,8 @@ serde_derive ="1.0.147"
sp-std ={ package="sp-std", git="https://github.com/paritytech/substrate", branch="polkadot-v1.0.0", default-features=false }
frame-support ={ package="frame-support", git="https://github.com/paritytech/substrate", branch="polkadot-v1.0.0", default-features=false, optional=true }
node-primitives={ version="2.0.0", default-features=false, git='https://github.com/paritytech/substrate.git', branch="polkadot-v1.0.0", optional=true }
strum ="0.25.0"
strum_macros ="0.25.3"
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Are these dependencies needed when the std feature is not enabled? Might be worth making them optional.

@JesseAbram JesseAbram merged commit 151f855 into master Jan 22, 2024
10 checks passed
@JesseAbram JesseAbram deleted the get-hashing-type branch January 22, 2024 17:34
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