Class Block


  • public class Block
    extends Object
    Represents a token's block with its checks
    • Method Detail

      • print

        public String print​(SymbolTable symbol_table)
        pretty printing for a block
        Parameters:
        symbol_table -
        Returns:
      • serialize

        public Schema.Block serialize()
        Serializes a Block to its Protobuf representation
        Returns:
      • deserialize

        public static io.vavr.control.Either<Error.FormatError,​Block> deserialize​(Schema.Block b,
                                                                                        io.vavr.control.Option<PublicKey> externalKey)
        Deserializes a block from its Protobuf representation
        Parameters:
        b -
        Returns:
      • from_bytes

        public static io.vavr.control.Either<Error.FormatError,​Block> from_bytes​(byte[] slice,
                                                                                       io.vavr.control.Option<PublicKey> externalKey)
        Deserializes a Block from a byte array
        Parameters:
        slice -
        Returns: