indutny / indutny/hash.js

hmac: Argument of type 'Sha256Constructor' is not assignable to parameter of type 'BlockHash<any>'.

Open
#31 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
323
Forks
40
PR merge metrics
No merged PRs in 30d

Description

![image](https://user-images.githubusercontent.com/13143636/93192027-ccf50500-f777-11ea-9c83-3c274967638b.png)

How do I get rid of this Typings error?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the TypeScript typing error shown in the issue and inspect the hash.js HMAC and SHA-256 type declarations involved. Identify the expected constructor type and verify the fix with the same HMAC usage; done means the reported error no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
cryptography
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.