8000 Drop ripemd, hash256 · Issue #4 · ajtowns/bllsh · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Drop ripemd, hash256 #4

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

Open
ajtowns opened this issue Apr 16, 2025 · 0 comments
Open

Drop ripemd, hash256 #4

ajtowns opened this issue Apr 16, 2025 · 0 comments

Comments

@ajtowns
Copy link
Owner
ajtowns commented Apr 16, 2025

bllsh/opcodes.py

Lines 1009 to 1011 in 5c981a5

(0x23, "ripemd160", op_ripemd160),
(0x24, "hash160", op_hash160),
(0x25, "hash256", op_hash256),

No real reason to keep ripemd support (it's slow). Also, if you really want a 160bit hash, then (substr (sha256 "foo") 12) would work.

Likewise not much point having hash256; (sha256 (sha256 "foo")) seems fine.

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

No branches or pull requests

1 participant
0