import stellar from "stellar-base" ; export function publicKeyFromBuffer ( value ) { return stellar . StrKey . encodeEd25519PublicKey ( value ) ; } export function publicKeyFromXDR ( xdr ) { return publicKeyFromBuffer ( xdr . accountId ( ) . value ( ) ) ; }