Allow byte array type to hold extra argument of byte array size #190
MicroProofs
started this conversation in
Core language features
Replies: 1 comment
-
An example of this syntax would be Bytearray<28>. This is very important to prevent users from running into this footgun of non-matching bytearray lengths. The biggest issue is addresses and policyIds with a malicious datum could set invalid address to send to or an unmintable policyId to mint from. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This idea allows for the ability to specify a length for byte arrays. Doing this would allow for simplicity in cases where byte arrays need to be a certain length. A famous example is a pubkey hash of an address is 28 bytes. Adding this to the type would automatically generate the check in uplc if the type is used.
Beta Was this translation helpful? Give feedback.
All reactions