You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The imported names don't match what base64url exports, at least with the current version
It appears this package comes with its own now, so it seems that should probably be used? import { base64 } from '@ltonetwork/http-message-signatures';
The signature for the verify function in the example is inaccurate (verifier should be 2nd argument)
The signature for the verifyHmac function in the example is inaccurate (signature: Uint8Array, not string)
I've tried to work through some of these things, and have TS happy, but still can't seem to get things verifying.
I'm trying to use this lib to verify a signature.
Following the "Verifying in the Browser" docs, I've found some issues:
base64url
dependencybase64url
exports, at least with the current versionimport { base64 } from '@ltonetwork/http-message-signatures';
verify
function in the example is inaccurate (verifier should be 2nd argument)verifyHmac
function in the example is inaccurate (signature: Uint8Array
, not string)I've tried to work through some of these things, and have TS happy, but still can't seem to get things verifying.
The text was updated successfully, but these errors were encountered: