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