Skip to content

test(evolution): add KeyHash and ScriptHash test coverage#5

Open
mokayaj857 wants to merge 1 commit intoCardanoHubNBO:mainfrom
mokayaj857:chore/update-dependencies-rebased
Open

test(evolution): add KeyHash and ScriptHash test coverage#5
mokayaj857 wants to merge 1 commit intoCardanoHubNBO:mainfrom
mokayaj857:chore/update-dependencies-rebased

Conversation

@mokayaj857
Copy link

Add unit and property-based tests for KeyHash and ScriptHash modules, which use @noble/hashes/blake2.js (updated import path in dependency update PR IntersectMBO#36).

  • KeyHash.test.ts: fromHex/toBytes roundtrip, fromPrivateKey, fromVKey, equality, and FastCheck property tests
  • ScriptHash.test.ts: fromHex/toBytes roundtrip, fromScript for PlutusV1/ V2/V3/NativeScript, CML parity assertions, equality, and FastCheck property tests

Add unit and property-based tests for KeyHash and ScriptHash modules,
which use @noble/hashes/blake2.js (updated import path in dependency
update PR IntersectMBO#36).

- KeyHash.test.ts: fromHex/toBytes roundtrip, fromPrivateKey, fromVKey,
  equality, and FastCheck property tests
- ScriptHash.test.ts: fromHex/toBytes roundtrip, fromScript for PlutusV1/
  V2/V3/NativeScript, CML parity assertions, equality, and FastCheck
  property tests

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant