Stellar-Wallets-Kit icon indicating copy to clipboard operation
Stellar-Wallets-Kit copied to clipboard

Albedo does support arbitrary message signing

Open kalepail opened this issue 2 years ago • 3 comments

When trying to sign blob I'm getting this error when using Albedo: Error: Albedo does not support signing arbitrary blobs

This isn't true: https://github.com/stellar-expert/albedo/tree/master/intent#intent-sign_message---sign-text-message

kalepail avatar Oct 26 '23 17:10 kalepail

If I'm not wrong that feature from Albedo has a different goal, that function edits the original input in order to avoid someone signing something dangerous: https://github.com/stellar-expert/albedo/blob/fae9b3284ce0346debb96f63b33a96e324692523/frontend/src/actions/action-authentication-context.js#L60C62-L60C62

While the one from Freighter signs the original blob directly.

What we could add is the compatibility for message signing for those wallets who allows it (I think currently Albedo is the only one but not fully sure)

earrietadev avatar Oct 26 '23 17:10 earrietadev

@earrietadev hey I'm looking for a way to prove account ownership. I think that albedo signing message that you mentioned would work. what do you think? I'm quite new in the space, so do you have any other idea to accomplish this? (saw this stale discussion btw https://github.com/stellar/stellar-client/issues/595)

emarai avatar Jan 09 '24 10:01 emarai

@emarai For validating account ownership, I suggest using SEP-10: https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0010.md

That's the most used method across the stellar ecosystem

earrietadev avatar Jan 09 '24 15:01 earrietadev