Sha256: ab07eade804a8752d5695797a86fbedd8c413b6044014614a565f05c2f901d23

Contents?: true

Size: 653 Bytes

Versions: 1

Compression:

Stored size: 653 Bytes

Contents

# frozen_string_literal: true

require "veriform/version"
require "veriform/exceptions"

require "veriform/decoder"
require "veriform/object"
require "veriform/parser"
require "veriform/varint"
require "veriform/zhash"

# Cryptographically verifiable data serialization format inspired by Protocol Buffers
module Veriform
  # Parse the given self-describing Veriform message
  #
  # @param message [String] binary encoded Veriform message
  #
  # @return [Veriform::Object] `::Hash`-like object representing message
  def self.parse(message)
    parser = Veriform::Parser.new(Veriform::Decoder.new)
    parser.parse(message)
    parser.finish
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veriform-0.0.0 lib/veriform.rb