Ledger canister blocks data addresses

hi everyone, I’m trying to develop an sort of webhook in the ledger canister, but I’m stucked with the from and to information:

Both give me a blob, sometimes a short one and sometimes more long, but I couldn’t transform it into a Principal id (my wallets address) to identify if the receiver is someone of my app’s customers.

This is an example:

JSON response:

Blob:
"781953734bb46883461703976a9cb1ce382e665520161f5fcd819f0702"

Candid response

variant { Blob = blob "\78\19\53\73\4b\b4\68\83\46\17\03\97\6a\9c\b1\ce\38\2e\66\55\20\16\1f\5f\cd\81\9f\07\02" };

What I see in my console

{
    '0': 66,
    '1': 117,
    '2': 71,
    '3': 200,
    '4': 224,
    '5': 115,
    '6': 134,
    '7': 214,
    '8': 18,
    '9': 75,
    '10': 58,
    '11': 229,
    '12': 184,
    '13': 25,
    '14': 113,
    '15': 141,
    '16': 2,
    '17': 223,
    '18': 26,
    '19': 141,
    '20': 45,
    '21': 249,
    '22': 121,
    '23': 141,
    '24': 61,
    '25': 64,
    '26': 105,
    '27': 230,
    '28': 9,
    '29': 228,
    '30': 244,
    '31': 229
  }

If anyone could help me I’ll appreciate it

This is your principal in the form of a buffer, if you connected with II (Internet Identity) with the help of @dfinity/agent you can just do something like this to get your principal in text form:

let identity = client.getIdentity();
let principal = identity.getPrincipal().toString();

If this doesn’t solve your problem provide more context or an example of the code you are working with.

So, you recommend to make a client with this blob instead the principal, and get the principal for the client? Now I’m doing like this:

 const uint8Array = new Uint8Array(32);
    for (const key in values) {
      uint8Array[key] = values[key];
    }

    return Principal.from(uint8Array).toText();

I can create the Client with only the blob?