hyperledger / identus-apollo

Collection of the cryptographic methods used all around identus
Apache License 2.0
10 stars 4 forks source link

Inaccurate HDKey error message when seed length is invalid #151

Open patlo-iog opened 6 months ago

patlo-iog commented 6 months ago

Is this a regression?

No

Description

I got this error message when messing around with BIP32 test vector 1, which has short seed length.

java.lang.IllegalArgumentException: Seed expected byte length to be 32

It looks like HDKey expects a 64 bytes seed, but the error message is asking for 32.

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in

No response

Anything else?

No response

elribonazo commented 6 months ago

@goncalo-frade-iohk maybe the right moment to look into this

mkbreuningIOHK commented 5 months ago

Assigned to @goncalo-frade-iohk as per the above comment.