fix: scalar bytes for js secp256k1 (#220)
Signed-off-by: Allain Magyar <[email protected]>
Signed-off-by: Allain Magyar <[email protected]>
Some fields in transaction were empty. Therefore, we make sure each field has at least some entry so that our serialisation golden tests can detect regressions in transaction serialisation.
- Add `hspec-golden` dependency to `cardano-ledger-alonzo-test` - Replace manual `readFile` + `shouldBe` comparisons with `hspec-golden` Golden type - Golden files are auto-created on first run and can delete to regenerate - Remove trailing newlines from JSON golden files to match `Aeson.encode` output - Fix `goldenGenesisSerialization` to use `getDataFileName` for correct installed path
Add streaming interface to era transition for initial funds injection
Add HasCallStack to calcMinFeeRecursive, estimateOrCalculateBalancedTxBody, and constructBalancedTx, which call balanceTxOuts, makeTransactionBodyAutoBalance, estimateBalancedTxBody, and calculateMinimumUTxO that already carry the constraint.
Add HasCallStack to makeShelleyTransactionBody, createAndValidateTransactionBody, fromLegacyTxOut, and toShelleyUTxO, which call functions like mkCommonTxBody, toShelleyTxOutAny, toShelleyTxOut, and createTransactionBody that already carry the constraint.
Add HasCallStack to fromShelleyGenesis so it propagates the stack trace from fromShelleyNetwork's error call on wrong mainnet network magic.
Add HasCallStack to toConsensusQuery so it propagates the stack trace from toConsensusQueryShelleyBased's error calls for wrong-era queries.
Add HasCallStack constraints to callers of makeShelleySignature so that stack traces show the full signing call chain: makeShelleyKeyWitness, makeShelleyKeyWitness', makeShelleyBootstrapWitness, makeShelleyBasedBootstrapWitness, makeKeyWitness, issueOperationalCertificate.
Add HasCallStack constraints to standalone functions that call error directly or indirectly. Improve bare Dijkstra-era placeholder error messages to follow the convention: functionName: Dijkstra era not supported.