Class: Stellar::MuxedAccount
- Inherits:
-
Object
- Object
- Stellar::MuxedAccount
- Defined in:
- lib/stellar/muxed_account.rb
Instance Method Summary collapse
Instance Method Details
#address ⇒ Object
12 13 14 |
# File 'lib/stellar/muxed_account.rb', line 12 def address to_keypair.address end |
#to_keypair ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/stellar/muxed_account.rb', line 3 def to_keypair case arm when :ed25519 then KeyPair.from_public_key(value) when :med25519 then KeyPair.from_public_key(value.ed25519) else raise "impossible" end end |