Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray committed Oct 25, 2023
1 parent 1095911 commit 245e44b
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import { Buffer } from 'buffer';
import { deserializeArrayFromVector, deserializeField, serializeBufferArrayToVector } from '../../serialize.js';

/**
* Hashes two 32-byte hashes.
* Hashes two arrays.
* @param wasm - The barretenberg module.
* @param lhs - The first hash.
* @param rhs - The second hash.
* @param lhs - The first array.
* @param rhs - The second array.
* @returns The new 32-byte hash.
* @deprecated Don't call pedersen directly in production code. Instead, create suitably-named functions for specific
* purposes.
Expand All @@ -18,10 +18,9 @@ export function pedersenHash(wasm: IWasmModule, lhs: Uint8Array, rhs: Uint8Array
}

/**
* Combine an array of hashes using pedersen hash.
* Computes the hash of an array of buffers.
* @param wasm - The barretenberg module.
* @param lhs - The first hash.
* @param rhs - The second hash.
* @param inputs - The array of buffers to hash.
* @returns The new 32-byte hash.
* @deprecated Don't call pedersen directly in production code. Instead, create suitably-named functions for specific
* purposes.
Expand Down

0 comments on commit 245e44b

Please sign in to comment.