Skip to content

Commit

Permalink
fixup! feat: vat-safe denomHash using noble sha256
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Jun 24, 2024
1 parent 31e500b commit 66a8aa2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/orchestration/src/utils/denomHash.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ function toHex(buffer) {
.join('');
}

/**
* cf. https://tutorials.cosmos.network/tutorials/6-ibc-dev/
*
* @param {object} opts
* @param {string} [opts.portId]
* @param {string} [opts.channelId] required unless `path` is supplied
* @param {string} [opts.path] alternative to portId, channelId
* @param {string} opts.denom base denom
*/
export const denomHash = ({
portId = 'transfer',
channelId = /** @type {string | undefined} */ (undefined),
Expand Down

0 comments on commit 66a8aa2

Please sign in to comment.