lib/stellar/util/strkey.rb in stellar-base-0.13.0 vs lib/stellar/util/strkey.rb in stellar-base-0.14.0

- old
+ new

@@ -5,11 +5,13 @@ require 'digest/crc16_xmodem' class StrKey VERSION_BYTES = { - account_id: [ 6 << 3].pack("C"), # Base32-encodes to 'G...' - seed: [18 << 3].pack("C"), # Base32-encodes to 'S...' + account_id: [ 6 << 3].pack("C"), # Base32-encodes to 'G...' + seed: [18 << 3].pack("C"), # Base32-encodes to 'S...' + pre_auth_tx: [19 << 3].pack("C"), # Base32-encodes to 'T...' + hash_x: [23 << 3].pack("C") # Base32-encodes to 'X...' } def self.check_encode(version, byte_str) version_byte = VERSION_BYTES[version] raise ArgumentError, "Invalid version: #{version}" if version_byte.blank?