Method: Stellar::Util::StrKey.encode_muxed_account

Defined in:
lib/stellar/util/strkey.rb

.encode_muxed_account(muxed_account) ⇒ String

Converts an Stellar::MuxedAccount to its string representation, forcing the ed25519 representation.

Parameters:

Returns:

  • (String)

    “G..”-like address



29
30
31
32
33
34
35
# File 'lib/stellar/util/strkey.rb', line 29

def self.()
  if .ed25519
    check_encode(:account_id, .ed25519)
  else
    check_encode(:muxed, .med25519!.ed25519 + [.med25519!.id].pack("Q>"))
  end
end