Class: AdequateCryptoAddress::Xtz

Inherits:
Altcoin
  • Object
show all
Defined in:
lib/adequate_crypto_address/xtz.rb

Overview

Tezos addresses are Base58Check with a four-byte double-SHA256 checksum and multi-byte version prefixes: tz1/tz2/tz3 implicit accounts and KT1 originated (contract) accounts, each wrapping a 20-byte hash (27 bytes total). https://tezos.gitlab.io/user/key-management.html

Constant Summary collapse

EXPECTED_LENGTH =

27 bytes rendered as hex

54
ADDRESS_TYPES =
{
  implicit: %w[06a19f 06a1a1 06a1a4], # tz1, tz2, tz3
  originated: %w[025a79] # KT1
}.freeze

Constants inherited from Altcoin

Altcoin::ALPHABET_TYPE, Altcoin::MAX_LENGTH

Instance Attribute Summary

Attributes inherited from Altcoin

#address, #type

Method Summary

Methods inherited from Altcoin

#address_type, #initialize, #valid?

Constructor Details

This class inherits a constructor from AdequateCryptoAddress::Altcoin