Package 

Class MemoBytes


  • 
    public final class MemoBytes
    
                        

    MemoBytes represents the raw 512-byte memo data as stored in transactions.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class MemoBytes.Companion
    • Method Summary

      Modifier and Type Method Description
      final FirstClassByteArray getBytes()
      final ByteArray unpaddedRawBytes() Returns raw bytes, excluding null padding
      final MemoContent intoMemo() Parsing of the MemoBytes in terms of ZIP-302 Specification See https://zips.z.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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)