Sha256: fb2964cccd438323f82ca1e9871c25929f2039cdc0bd5b319642f7b2f8c9c245

Contents?: true

Size: 492 Bytes

Versions: 2

Compression:

Stored size: 492 Bytes

Contents

module FlowClient
  class Signature
    attr_accessor :address,
                  :signature,
                  :key_id

    def initialize
      @address = nil
      @signature = nil
      @key_id = nil
    end

    def self.parse_grpc_type(pb_signature)
      signature = Signature.new
      signature.address = pb_signature.address.unpack1("H*")
      signature.signature = pb_signature.signature.unpack1("H*")
      signature.key_id = pb_signature.key_id
      signature
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flow_client-0.2.1 lib/flow_client/signature.rb
flow_client-0.2.0 lib/flow_client/signature.rb