Class: Cryptos::Litecoin::Address
- Defined in:
- lib/cryptos/litecoin/address.rb
Overview
Instance Attribute Summary
Attributes inherited from Address
Instance Method Summary collapse
Methods inherited from Address
#generate, #get_balance, #import, #initialize, #p2pkh, #p2sh, #to_hash160, to_hash160, #to_s
Methods included from Utils::Hashes
#hash160, #hash256, #ripemd160, #sha256
Methods included from Base58
#base58_decode, #base58_encode
Methods included from Utils::Bytes
#bignum_to_bytes, #bytes_to_bignum
Constructor Details
This class inherits a constructor from Cryptos::Address
Instance Method Details
#p2pkh_prefix ⇒ Object
8 9 10 |
# File 'lib/cryptos/litecoin/address.rb', line 8 def p2pkh_prefix testnet ? 0x6f : 0x30 end |
#p2sh_prefix ⇒ Object
12 13 14 |
# File 'lib/cryptos/litecoin/address.rb', line 12 def p2sh_prefix testnet ? 0x3a : 0x32 end |