Closed robertfmurdock closed 5 months ago
@robertfmurdock Do you use Hmac
as Readable
or as Writable
after that?
What is your use case?
Hm, I guess I'm not sure.
calling function:
private fun String.hmac256Hash() = createHmac("sha256", signingSecret)
.update(this)
.digest()
.toString(BufferEncoding.hex)
AFAICT just importing the Hmac type is enough to trigger the error.
@Leonya Could you please release these changes?
@robertfmurdock Solution was released in pre.683
. Does it work for you?
Just checked - looks good to me! Thanks ya'll.
"IrLinkageError: Function 'createHmac' can not be called: Function uses class 'Duplex' (via class 'Hmac') that simultaneously inherits from 2 classes: 'Readable', 'Writable'"
This error occurs at runtime when calling the "node.crypto.createHmac" function. Works fine in pre.674.