lib/zold/wallet.rb
# Returns the protocol ID of the wallet file.
Returns the protocol ID of the wallet file.
Returns the protocol ID of the wallet file .
def protocol
      v = @head.fetch[1]
      raise "Invalid protocol version name '#{v}'" unless v =~ /^[0-9]+$/
      v.to_i
    end
def protocol v = @head . fetch [ 1 ] raise "Invalid protocol version name '#{v}'" unless v =~ / ^[0-9]+$ / v . to_i end
Returns the protocol ID of the wallet file.
Returns the protocol ID of the wallet file .