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 authored and rygine committed Mar 12, 2024
1 parent ef2f167 commit 6c2079b
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 @@ -936,10 +936,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 6c2079b

Please sign in to comment.