Skip to content

Commit 523da34

Browse files
committed
fix(ledger): re-export canonicalJson from ledger-anchor.ts (#9270)
Lost during editing -- the re-export line only carried sha256Hex, so any consumer importing canonicalJson from this module got undefined. Caught while building #9273's git-commit backend, which needs it to commit the same canonicalized payload Rekor anchors.
1 parent 9764ba7 commit 523da34

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/review/ledger-anchor.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,4 +211,7 @@ export function anchorKeyById(keys: readonly AnchorPublicKey[], keyId: string):
211211
}
212212

213213
/** Digest helper re-exported so an anchor consumer never needs a second import just to hash a payload. */
214-
export { sha256Hex };
214+
/** Digest helpers re-exported so an anchor consumer (e.g. the git-commit backend, #9273, which commits the
215+
* same canonicalized payload Rekor anchors) never needs a second import from decision-record.ts just to
216+
* canonicalize or hash something alongside a signed anchor. */
217+
export { canonicalJson, sha256Hex };

0 commit comments

Comments
 (0)