Hello Kukks and thank you very much for your work.
I always have a wrong result when I try to authenticate with my Phoenix Wallet. do you have any idea?
k1, sig, and the key comes via a get request from the Phoenix wallet, and should be correct.
at https://lightninglogin.live/ everything works fine.
var k1 = "0000000000000000000000000000000000000000000000000000000000000000";
var sig = "304402205a2150bc65d06050f993f622300dd7c2edfc84aeb2b5905e29da274458397a5c02207bb440e47d5a79c13ff9b44dbfb1df0e877df548c3bf249a67fad642989aa449";
var key = "037b42c12b5a5b6fcadeaf12fb37028e8d56ac2c980c0c7836eb56927f9e57359c";
var sb = Encoders.Hex.DecodeData(sig);
var signature = ECDSASignature.FromDER(sb);
var pKey = new PubKey(key);
var result = LNAuthRequest.VerifyChallenge(signature, pKey, Encoders.Hex.DecodeData(k1));
Hello Kukks and thank you very much for your work. I always have a wrong result when I try to authenticate with my Phoenix Wallet. do you have any idea? k1, sig, and the key comes via a get request from the Phoenix wallet, and should be correct. at https://lightninglogin.live/ everything works fine.