You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The keys are in base64 and the documentation also works with it as base64.
When trying to implement it with eosdart, I'm met with the error Invalid argument(s): Non-base58 character when creating the publicKey var
Here's my code:
// var base64 = base64Url.decode(admobPublicKeys[keyId]);var publicKey =EOSPrivateKey.fromString(admobPublicKeys[keyId]).toEOSPublicKey();
var privateKey =EOSPrivateKey.fromString(signature);
var signer = privateKey.signString(data);
return signer.verify(data, publicKey);
I'm not too familiar with ECC verification. So if I made any other mistakes, please tell me.
However, for the current issue at hand, the keys are in base64, while the package requires base58. I'm not sure what to do.
The text was updated successfully, but these errors were encountered:
Hello, I'm trying to implement server-side reward-ad verification through dart.
Google's Admob has very clear documentation on how to implement this in java
https://developers.google.com/admob/android/rewarded-video-ssv#fetch_public_keys
And a github sample:
The public keys are retrieved from the url: https://www.gstatic.com/admob/reward/verifier-keys.json
The keys are in base64 and the documentation also works with it as base64.
When trying to implement it with eosdart, I'm met with the error
Invalid argument(s): Non-base58 character
when creating the publicKey varHere's my code:
I'm not too familiar with ECC verification. So if I made any other mistakes, please tell me.
However, for the current issue at hand, the keys are in base64, while the package requires base58. I'm not sure what to do.
The text was updated successfully, but these errors were encountered: