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.
29 30 31 32 33 34 35 |
# File 'lib/stellar/util/strkey.rb', line 29 def self.encode_muxed_account(muxed_account) if muxed_account.ed25519 check_encode(:account_id, muxed_account.ed25519) else check_encode(:muxed, muxed_account.med25519!.ed25519 + [muxed_account.med25519!.id].pack("Q>")) end end |