fromMed25519AccountId static method

MuxedAccount fromMed25519AccountId(
  1. String med25519AccountId
)

Implementation

static MuxedAccount fromMed25519AccountId(String med25519AccountId) {
  XdrMuxedAccount xdrMuxAccount = XdrMuxedAccount(XdrCryptoKeyType.KEY_TYPE_MUXED_ED25519);
  Uint8List bytes = StrKey.decodeStellarMuxedAccountId(med25519AccountId);
  XdrMuxedAccountMed25519 muxMed25519 =
      XdrMuxedAccountMed25519.decodeInverted(XdrDataInputStream(bytes));
  xdrMuxAccount.med25519 = muxMed25519;
  return fromXdr(xdrMuxAccount);
}