Pymerkle

Latest version: v6.1.0

Safety actively analyzes 623847 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

6.1.0

Added

- Support for `python>=3.7`
- Support for Keccak functions beyond SHA3


Changed

- Constant-time operations in proof verification

6.0.0

This version introduces significant optimizations.


Added

- `append_entry` method
- `hash_empty` and `hash_raw` methods
- `append_entries` operation to `SqliteTree`


Changed

- `BaseMerkleTree` private interface
- `hash_leaf` renamed to `hash_entry`
- `hash_nodes` renamed to `hash_pair`


Removed

- `UnsupportedParameter`

5.0.3

Removed

- `init_from_entries` from base class

Changed

- Apply hash precomputation
- Pass iterable to `init_from_entries`

5.0.0

Removed

- proof timestamp
- size, length, root and height properties
- tree metadata getter
- `append_entry`
- `has_previous_state`

Added

- `InmemoryTree` implementation
- `SqliteTree` implementation
- state and size getter

Changed

- Inclusion proof interface
- Consistency proof interface
- Renamed `HashEngine` to`MerkleHasher`
- Renamed `hash_pair` to `hash_nodes`
- Renamed `hash_entry` to `hash_leaf`
- Return leaf index when appending entry
- Drop hexadecimal representations

4.0.0

Added

- `verify_inclusion`
- `InvalidChallengeError` when requesting a proof for invalid parameters
- `append_entry` method
- `find_leaf` method

Changed

- Access root hash as `.root`
- Return hash on append
- Simplify proof serialization
- Remove `created_at` field from proof
- Remove `NoPathException`
- Remove proof json utilities
- Rename `Proof` to `MerkleProof`
- Rename proof header to metadata
- Remove node serialization
- Rename `generate_consistency_proof` to `prove_consistency`
- Rename `generate_audit_proof` to `prove_inclusion`
- Remove tree serialization, representation and stringification
- Remove tree comparison operators
- Remove uuid from proof and tree objects
- Remove file encryption
- Remove md5 from supported hash algorithms
- Remove `root_hash` property

3.0.0

This is the first documented release version, following 2.0.2. The result of
a major refactoring, it introduces significant breaking changes to the API. Here
we list only a few of the most striking ones.

Added

- `get_root_hash` public method

Changed

- Raise `InvalidProof` in case of verification failure
- Attach verification to the proof object
- Remove validator object
- Remove no raw-bytes mode
- Always include commitments to proofs
- Rename `update` to `append_leaf`
- Uniformly apply snake case to public method names
- Remove `InvalidChallengeError`
- Remove proof verification receipt
- Rename `validateProof` to `verify_proof`

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.