Skip to content
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

Implement cip 67 #350

Merged
merged 5 commits into from
Jan 8, 2024
Merged

Implement cip 67 #350

merged 5 commits into from
Jan 8, 2024

Conversation

Kammerlo
Copy link
Collaborator

@Kammerlo Kammerlo commented Jan 7, 2024

No description provided.


import java.nio.ByteBuffer;

public class CIP67 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Kammerlo

Should we rename CIP67 to CIP67AssetName or CIP67AssetNameUtil to give some context ?

@@ -0,0 +1,20 @@
package com.bloxbean.cardano.client.util;

public class IntUtil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a Utils class which has a method with similar functionality uint32ToByteArrayBE. But it's currently in crypto/bip32 package.

I am just wondering if we can use that. Otherwise, we can keep this class but rename it to ByteUtil, allowing us to add additional conversion methods, such as long to bytes, etc later.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So yes the function would work as well. For me this conversions seemed pretty common so I wasn't looking into the bip32 package for this functionality.
I renamed the package. We can discuss if moving the other functions to a more common place.

@satran004 satran004 merged commit b27589d into bloxbean:master Jan 8, 2024
4 checks passed
@Kammerlo Kammerlo deleted the implement-cip-67 branch January 8, 2024 10:13
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.

2 participants