Skip to content

Commit

Permalink
fix: replace last salt with info
Browse files Browse the repository at this point in the history
  • Loading branch information
neekolas committed Jan 20, 2024
1 parent dfc99fa commit d7f6164
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/keystore/InMemoryKeystore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -935,10 +935,10 @@ describe('InMemoryKeystore', () => {

const topicData = aliceKeystore.lookupTopic(topic)
const keyMaterial = getKeyMaterial(topicData!.invitation)
const salt = `${thirtyDayPeriodsSinceEpoch}-${aliceKeystore.walletAddress}`
const info = `${thirtyDayPeriodsSinceEpoch}-${aliceKeystore.walletAddress}`
const hmac = await generateHmacSignature(
keyMaterial,
new TextEncoder().encode(salt),
new TextEncoder().encode(info),
headerBytes
)

Expand Down

0 comments on commit d7f6164

Please sign in to comment.