Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PolicyId ¶
type PolicyId struct {
Value string
}
func FromBytes ¶
*
FromBytes creates a new PolicyId from a byte slice. Params: value []byte: The byte slice representing the policy ID. Returns: *PolicyId: A pointer to the PolicyId. error: An error if the input byte slice is not of the expected length.
func New ¶
*
New creates a new PolicyId from a hexadecimal string Params: value string: The hexadecimal string representing the policy ID. Returns: *PolicyId: A pointer to the PolicyId. error: An error if the input string is not of the expected length.
func (*PolicyId) MarshalCBOR ¶
*
MarshalCBOR serializes the PolicyId to CBOR format. Returns: []byte: The CBOR serialized data. error: An error if the serialization fails.
func (*PolicyId) UnmarshalCBOR ¶
*
UnmarshalCBOR deserializes the PolicyId from CBOR format. Params: value []byte: The CBOR serialized data. Returns: error: An error if the deserialization fails.
Click to show internal directories.
Click to hide internal directories.