Skip to content

Commit 7cd6a3b

Browse files
committed
fix(sdk/js): buffer type issue.
1 parent 95d4d76 commit 7cd6a3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/js/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ function replay_rtmr(history: string[]): string {
101101
const padding = Buffer.alloc(48 - contentBuffer.length, 0)
102102
contentBuffer = Buffer.concat([contentBuffer, padding])
103103
}
104-
mr = crypto.createHash('sha384')
104+
mr = Buffer.from(crypto.createHash('sha384')
105105
.update(Buffer.concat([mr, contentBuffer]))
106-
.digest()
106+
.digest())
107107
}
108108
return mr.toString('hex')
109109
}

0 commit comments

Comments
 (0)