Skip to content

V3 Local Secret Key must be 32 bytes long symmetric key Error #32

Answered by panva
Jacobinoo asked this question in Q&A
Discussion options

You must be logged in to vote

"b244ac595fbe3a6ea8c3fad93f66d15221121428fd03dcccf32203e364f504ed" is 64 octets, not 32, you need to decode your hex encoded string into a 32 byte buffer first.

Buffer.from(hexString, 'hex')

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@panva
Comment options

Comment options

You must be logged in to vote
2 replies
@Jacobinoo
Comment options

@Jacobinoo
Comment options

Answer selected by Jacobinoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants