-
public final class MemoBytesMemoBytes represents the raw 512-byte memo data as stored in transactions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classMemoBytes.Companion
-
Field Summary
Fields Modifier and Type Field Description private final FirstClassByteArraybytes
-
Method Summary
Modifier and Type Method Description final FirstClassByteArraygetBytes()final ByteArrayunpaddedRawBytes()Returns raw bytes, excluding null padding final MemoContentintoMemo()Parsing of the MemoBytes in terms of ZIP-302 Specification See https://zips.z. -
-
Method Detail
-
getBytes
final FirstClassByteArray getBytes()
-
unpaddedRawBytes
final ByteArray unpaddedRawBytes()
Returns raw bytes, excluding null padding
-
intoMemo
final MemoContent intoMemo()
Parsing of the MemoBytes in terms of ZIP-302 Specification See https://zips.z.cash/zip-0302#specification
Returns:
.text(MemoText)if the first byte has a value of 0xF4 or smaller.future(MemoBytes)if the memo matches any of these patterns (reserved for future updates):The first byte has a value of 0xF5
The first byte has a value of 0xF6, and the remaining 511 bytes are not all 0x00
The first byte has a value between 0xF7 and 0xFE inclusive
.arbitrary(Bytes)when the first byte is 0xFF (Bytes don't include the 0xFF leading byte)
-
-
-
-