Commit graph

525 commits

Author SHA1 Message Date
Matthias Benkort
9020cc512b fix(primitives): expose hidden struct fields in Conway (#501)
* Provide slightly better error when failing to decode Plutus data.
* Expose GovActionId, Constitution & Anchor inner fields
2024-08-10 20:08:45 -03:00
Matthias Benkort
afc93b2c3c fix(traverse): use Conway types in places they are meant to (#499) 2024-08-08 08:33:10 -03:00
Santiago Carmuega
2758cc5a2c fix(interop): skip conway certs in u5c (#498) 2024-08-03 10:46:14 -03:00
Joshua Marchand (JSHy)
b7c6144b4d chore(txbuilder): export ExUnits to make them accessible from outside (#497) 2024-08-02 14:39:49 -03:00
Andrew Westberg
0f8cafdaa0 feat(math): add support for some math functions (#483) 2024-08-01 19:35:18 -03:00
Santiago Carmuega
46dff24c3e chore(interop): update u5c spec to v0.8.0 (#493) 2024-07-28 19:48:43 -03:00
Santiago Carmuega
ad1a5e3c2e fix(addresses): relax length check during parsing (#491) 2024-07-19 09:36:07 -03:00
Santiago Carmuega
f1a90e84fa Release 0.29.0
pallas@0.29.0
pallas-addresses@0.29.0
pallas-applying@0.29.0
pallas-codec@0.29.0
pallas-configs@0.29.0
pallas-crypto@0.29.0
pallas-hardano@0.29.0
pallas-math@0.29.0
pallas-network@0.29.0
pallas-primitives@0.29.0
pallas-rolldb@0.29.0
pallas-traverse@0.29.0
pallas-txbuilder@0.29.0
pallas-utxorpc@0.29.0
pallas-wallet@0.29.0

Generated by cargo-workspaces
2024-07-15 22:31:37 -03:00
Steven Johnson
9528bedfda feat(hardano): add fuzzy block search by slot in Immutable db (#484)
Co-authored-by: Mr-Leshiy <leshiy12345678@gmail.com>
2024-07-15 22:16:58 -03:00
Lucas
60e07e2f00 fix(interop): map missing u5c redeemers (#490) 2024-07-15 21:47:25 -03:00
Santiago Carmuega
8f74238dc5 chore(interop): update u5c spec to v0.7.0 (#489) 2024-07-15 18:25:40 -03:00
Santiago Carmuega
9f9e088091 fix(interop): use correct input order to match redeemers (#487) 2024-07-14 13:48:05 -03:00
Santiago Carmuega
9b16a98fb1 fix(interop): check for spend purpose when matching redeemers (#486) 2024-07-13 14:43:52 -03:00
Santiago Carmuega
6273e758c0 chore(interop): update u5c specs to v0.6 (#485) 2024-07-12 18:03:17 -03:00
Santiago Carmuega
496f73fbf3 Release 0.28.0
pallas@0.28.0
pallas-addresses@0.28.0
pallas-applying@0.28.0
pallas-codec@0.28.0
pallas-configs@0.28.0
pallas-crypto@0.28.0
pallas-hardano@0.28.0
pallas-math@0.28.0
pallas-network@0.28.0
pallas-primitives@0.28.0
pallas-rolldb@0.28.0
pallas-traverse@0.28.0
pallas-txbuilder@0.28.0
pallas-utxorpc@0.28.0
pallas-wallet@0.28.0

Generated by cargo-workspaces
2024-07-01 13:39:28 -03:00
Santiago Carmuega
9552d669b5 ci: skip gmp dep until we can build on windows (#476) 2024-07-01 12:22:42 -03:00
Santiago Carmuega
de48c9df46 chore: fix lint warnings and outdated tests (#475) 2024-07-01 11:34:31 -03:00
Andrew Westberg
1fdf8dc01f chore(math): initialize pallas-math crate (#474) 2024-06-29 17:43:06 -03:00
teebaumcrypto
9011a2e078 fix(network): handle end of list in tx monitor response (#305) 2024-06-29 15:08:16 -03:00
dependabot[bot]
604b492dee build(deps): update itertools requirement from 0.12.1 to 0.13.0 (#459)
Updates the requirements on [itertools](https://github.com/rust-itertools/itertools) to permit the latest version.
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-itertools/itertools/compare/v0.12.1...v0.13.0)

---
updated-dependencies:
- dependency-name: itertools
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-29 15:02:05 -03:00
teebaumcrypto
6504915a42 refactor(network): don't treat rejected txs as submit protocol errors (#306) 2024-06-29 15:00:08 -03:00
io:nathan
fac640b789 feat(network): add tx submission and tx monitor clients to network facades (#442)
* added txsubmission client to network facades
* added txmonitor::client to network facades
2024-06-29 14:28:33 -03:00
Alex Pozhylenkov
9d7fda86ba chore: improve ImmutableDB error handling (#426)
Co-authored-by: Steven Johnson <stevenj@users.noreply.github.com>
2024-06-29 14:25:40 -03:00
Santiago Carmuega
ab8bd49701 fix: relax CBOR decoding of Conway protocol params update (#473) 2024-06-18 13:03:07 -03:00
Santiago Carmuega
12b83111ee refactor(interop): use batching for utxorpc ledger interface (#472) 2024-06-09 21:01:59 -03:00
Santiago Carmuega
52c6db13ef Release 0.27.0
pallas@0.27.0
pallas-addresses@0.27.0
pallas-applying@0.27.0
pallas-codec@0.27.0
pallas-configs@0.27.0
pallas-crypto@0.27.0
pallas-hardano@0.27.0
pallas-network@0.27.0
pallas-primitives@0.27.0
pallas-rolldb@0.27.0
pallas-traverse@0.27.0
pallas-txbuilder@0.27.0
pallas-utxorpc@0.27.0
pallas-wallet@0.27.0

Generated by cargo-workspaces
2024-06-01 08:47:13 -03:00
Santiago Carmuega
0f30012d75 chore: fix lint warnings (#470) 2024-06-01 08:05:47 -03:00
Nicolas Di Prima
3e32159caf Merge pull request from GHSA-wr2p-64gm-8x2c
This allowed users to create invalid Ed25519 Extended Secret Keys
with potentially cryptographically weak ECDSA Signatures.

However we still allow to have an _unsafe_ version to construct
a `SecretKeyExtended` from bytes without performing checks.
This is in order to allow a compatibility path without breaking
codes too much.

allow the direct conversion from XPrv from ed25519_bip32 crates to pallas-crypto's SecretKeyExtended without performing the bit tweaks check

While it is unsafe to call the SecretKeyExtended::from_bytes_unchecked
(unsafe in the cryptographic sense, not in the rust memory management
sense) we know this is going to be okay because the XPrv was already
safely created.

We previously removed the direct conversion of byte arrays into SecretKeyExtended

This has been replaced with a `TryFrom` and a `from_bytes() -> Result<Self>` function.
This allows us to perform the recovery of the wrapped private keys
without losing the security of performing the checks of the validity
of the Ed25519 Extended structure.

This should be safe to use and shouldn't make incompatibilities
because the Xprv was already checked for bit tweaks previously
in the flow.

add unsafe functions to leak the content of the SecretKey or SecretKeyExtended

Remove the From implementation to convert Secret Keys into Bytes

Instead prefer the explicit unsafe functions to leak the content of the keys

temporarily remove the public access of the as_bytes function

this is to prevent leaking the bytes of the private keys.
2024-06-01 07:32:32 -03:00
Santiago Carmuega
61c82bfdf8 chore: split unstable features into independent flags (#469) 2024-05-27 18:42:22 -03:00
Santiago Carmuega
540a27db8e fix(network): expose missing members in facades (#468) 2024-05-26 13:23:20 -03:00
Andrew Westberg
f4fd2600f1 feat(traverse): Decode Conway block headers properly (#466) 2024-05-24 17:25:24 -03:00
Santiago Carmuega
3a83c1fdad chore(traverse): make era enum serializable (#467) 2024-05-24 17:21:17 -03:00
Santiago Carmuega
e92958ec6d docs: define security policy (#464)
Signed-off-by: Santiago Carmuega <santiago@carmuega.me>
2024-05-22 10:53:39 -03:00
Santiago Carmuega
a19aa07ad2 Release 0.26.0
pallas@0.26.0
pallas-addresses@0.26.0
pallas-applying@0.26.0
pallas-codec@0.26.0
pallas-configs@0.26.0
pallas-crypto@0.26.0
pallas-hardano@0.26.0
pallas-network@0.26.0
pallas-primitives@0.26.0
pallas-rolldb@0.26.0
pallas-traverse@0.26.0
pallas-txbuilder@0.26.0
pallas-utxorpc@0.26.0
pallas-wallet@0.26.0

Generated by cargo-workspaces
2024-05-21 08:32:18 -03:00
Santiago Carmuega
17022b5f07 fix(primitives): handle conway extreme param updates (#462) 2024-05-21 08:29:09 -03:00
Santiago Carmuega
37cad70f9c refactor(interop): use stateful mapper for u5 (#460) 2024-05-17 20:54:33 -03:00
Santiago Carmuega
3fabbb2504 chore: apply lint recommendations (#458) 2024-05-14 21:14:19 -03:00
Santiago Carmuega
88d3d1c5cc test(hardano): contemplate skip of last chunk in immutable read (#457) 2024-05-14 20:18:35 -03:00
Maico Leberle
59a5db0143 fix(applying): fix tx size calculation (#443) 2024-05-14 07:40:52 -03:00
aleksandar
5a299ce049 feat(interop): add ledger context for utxorpc mapping logic (#450)
Co-authored-by: Aleksandar Djuric <aleksandardjuric@alethea.io>
2024-05-14 07:19:04 -03:00
Alex Pozhylenkov
1a927ee1a0 fix(hardano): exclude last chunk file during immutable db read (#454) 2024-05-14 07:10:14 -03:00
Pi Lanningham
af8898b8ec feat: add a simple Crawler example (#453)
While working on Amaru, we'll likely want to grab lots of example data. This adds a small utility to easily grab one block, one tx, or blocks/txs matching some predicate
2024-05-08 20:11:13 -03:00
Vincent Hanquez
7c60affea1 chore(deps): use cryptoxide sha3 instead of depending on sha3 crate (#452) 2024-04-29 14:51:47 -03:00
Santiago Carmuega
7374eeac92 chore: move txbuilder to stable feature (#451) 2024-04-21 04:12:25 -03:00
Santiago Carmuega
df202c27c3 feat(interop): re-export utxorpc spec to unify downstream versions (#448) 2024-04-18 22:40:40 -03:00
Santiago Carmuega
0b82bb702a feat(traverse): track original era for tx outputs (#447) 2024-04-18 22:36:19 -03:00
Santiago Carmuega
33fcec215d feat(primitives): derive Eq on relevant structs (#446) 2024-04-18 22:25:02 -03:00
Pi Lanningham
a1e18833d6 feat(network): add an extra ergonomic method for n2c chainsync (#439) 2024-04-16 19:04:07 -03:00
Alexsander Falcucci
9e7cafbcac feat(network): implement GetChainBlockNo local state query (#441) 2024-04-16 09:27:23 -03:00
Santiago Carmuega
4a3a8fb0da chore(applying): prepare pparams for folding logic (#438) 2024-04-15 21:53:33 -03:00