Skip to content

Commit

Permalink
fix: sha-256 constant
Browse files Browse the repository at this point in the history
  • Loading branch information
genaris committed Feb 5, 2024
1 parent f849a5c commit aa07578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/anoncreds/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function calculateResourceId(resourceObjectValue: unknown) {
throw new Error('Cannot canonicalize resource object')
}

return TypedArrayEncoder.toBase58(Hasher.hash(TypedArrayEncoder.fromString(objectString), 'sha2-256'))
return TypedArrayEncoder.toBase58(Hasher.hash(TypedArrayEncoder.fromString(objectString), 'sha-256'))
}

export function verifyResourceId(resourceObjectValue: unknown, resourceId: string) {
Expand Down

0 comments on commit aa07578

Please sign in to comment.