Skip to content

WIP: CIP67 and CIP68 Support #297

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
Changes from 8 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
fdfd3e2
Added extended signing key support for cip8
theeldermillenial Oct 6, 2023
01230ac
Fixed unused imports, flake8 checks pass.
theeldermillenial Oct 6, 2023
143e843
Fixed mypy error for overloaded variable
theeldermillenial Oct 11, 2023
049c6bf
Remove extraneous parameter for verify
theeldermillenial Oct 18, 2023
434a163
Merge branch 'main' of https://github.com/Python-Cardano/pycardano in…
theeldermillenial Nov 3, 2023
1bf3f81
Added ByteString to _restored_typed_primitive
theeldermillenial Nov 3, 2023
67add7a
Added type checking
theeldermillenial Nov 3, 2023
f0644e7
Merge pull request #1 from theeldermillenial/bugfix/bytestring
theeldermillenial Nov 3, 2023
1edb549
Merge branch 'main' of https://github.com/Python-Cardano/pycardano
theeldermillenial Jan 10, 2024
f9c8754
Added support for CIP 14
theeldermillenial Jan 10, 2024
8f80fbc
Added support for ScriptHash and AssetName
theeldermillenial Jan 10, 2024
eec89fd
Merge branch 'main' of https://github.com/Python-Cardano/pycardano in…
theeldermillenial Jan 11, 2024
d77e045
WIP: support for cip67/68
theeldermillenial Jan 11, 2024
2df945e
Updated poetry lock
theeldermillenial Jan 12, 2024
ddf05d2
Merge branch 'feat/cip67-cip68' of https://github.com/theeldermilleni…
Cat-Treat Apr 10, 2025
fed24ba
Merge remote-tracking branch 'pycardano/main' into feat/cip67-cip68
Cat-Treat Apr 11, 2025
1e24168
Merge remote-tracking branch 'pycardano/main' into feat/cip67-cip68
Cat-Treat Apr 11, 2025
092b5f6
Merge pull request #2 from Cat-Treat/feat/cip67-cip68
theeldermillenial Apr 15, 2025
d9fa5e8
Add unit tests for CIP67
Cat-Treat Apr 22, 2025
b71893f
feat: implement complete cip67/68 with tests
Cat-Treat Jun 4, 2025
ad0b0f4
Merge branch 'feat/cip67-cip68' of https://github.com/Cat-Treat/pycar…
Cat-Treat Jun 4, 2025
b820eb5
Cleaned up unused code comments
Cat-Treat Jun 4, 2025
4695493
docs: added documentation for CIP-67 and CIP-68
Cat-Treat Jun 5, 2025
7e8ddea
Renamed CIP68UserNFTFile for clarification and improved tests
Cat-Treat Jun 17, 2025
ef3bc85
Merge pull request #3 from Cat-Treat/feat/cip67-cip68
theeldermillenial Aug 4, 2025
6abe56b
Merge branch 'Python-Cardano:main' into feat/cip67-cip68
theeldermillenial Aug 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pycardano/serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,10 @@ def _restore_typed_primitive(
if not isinstance(v, list):
raise DeserializeException(f"Expected type list but got {type(v)}")
return IndefiniteList([_restore_typed_primitive(t, w) for w in v])
elif isclass(t) and t == ByteString:
if not isinstance(v, bytes):
raise DeserializeException(f"Expected type bytes but got {type(v)}")
return ByteString(v)
elif isclass(t) and issubclass(t, IndefiniteList):
try:
return IndefiniteList(v)
Expand Down