Although it is not displaying an error, it is not displaying the public key.
I also tried this approach (in an async function):
var objPublicKey = await albedo.default.publicKey()
console.log(objPublicKey)
It did not execute the "console.log" line. The program hung on "await albedo.default.publicKey()".
This problem was caused by the Chrome popup blocker. No other extensions use popups. You might want to consider using the extension sidebar instead, (which Chrome does not block as a popup).
I am using just javascript. I am not using any "build system". The Albedo Chrome extension is active on my browser. My code is preceded with:
I was instructed to add the "default" indicator, as is shown below:
albedo.default.publicKey({ token: 'vuEiDlijTCLdR8fqDHdfUQUUyVpVenVO2YGBrljh/Iw=' }) .then(res => console.log(res.pubkey, res.signed_message, res.signature))
Although it is not displaying an error, it is not displaying the public key.
I also tried this approach (in an async function): var objPublicKey = await albedo.default.publicKey() console.log(objPublicKey)
It did not execute the "console.log" line. The program hung on "await albedo.default.publicKey()".
This problem was caused by the Chrome popup blocker. No other extensions use popups. You might want to consider using the extension sidebar instead, (which Chrome does not block as a popup).