monero-integrations / monerophp

Monero PHP library + JsonRPC Client
MIT License
120 stars 76 forks source link

Use native PHP SHA-3 when available? #104

Closed cypherbits closed 4 years ago

cypherbits commented 4 years ago

Hello, I noticed we use a SHA3 class, could we use native PHP SHA-3 when available? Is there anything which prevents us from doing this?

serhack commented 4 years ago

We could not use the native php SHA-3 functions since Monero uses a particular modified version of SHA-3 named "Keccak". You can look up for more information about Keccak-256.