class Digitalbits::MuxedAccount

Public Instance Methods

address() click to toggle source
# File lib/digitalbits/muxed_account.rb, line 12
def address
  to_keypair.address
end
to_keypair() click to toggle source
# File lib/digitalbits/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