Method: Stellar::Account.from_address
- Defined in:
- lib/stellar/account.rb
.from_address(address) ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/stellar/account.rb', line 15 def self.from_address(address) muxed_xdr = Util::StrKey.decode_muxed_account(address) if muxed_xdr.ed25519 new(KeyPair.from_public_key(muxed_xdr.ed25519)) else muxed_xdr = muxed_xdr.med25519! new(KeyPair.from_public_key(muxed_xdr.ed25519), muxed_xdr.id) end end |