-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Implement cip 67 #350
Conversation
|
||
import java.nio.ByteBuffer; | ||
|
||
public class CIP67 { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
No description provided.