Skip to content

Commit

Permalink
Use the new Mojang public key
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim203 committed Aug 25, 2023
1 parent 28fd7a6 commit 5a8a22d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/skins/src/skin_convert/chain_validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use jsonwebtokens::{Algorithm, AlgorithmID, Verifier};
use rustler::ListIterator;
use serde_json::Value;

const MOJANG_PUBLIC_KEY: &str = "MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE8ELkixyLcwlZryUQcu1TvPOmI2B7vX83ndnWRUaXm74wFfa5f/lwQNTfrLVHa2PmenpGI6JhIMUJaWZrjmMj90NoKNFSNBuKdm8rYiXsfaz3K36x/1U26HpG0ZxK/V1V";
const MOJANG_PUBLIC_KEY: &str = "MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAECRXueJeTDqNRRgJi/vlRufByu/2G0i2Ebt6YMar5QX/R0DIIyrJMcUpruK4QveTfJSTp3Shlq4Gk34cD/4GUWwkv0DVuzeuB+tXija7HBxii03NHDbPAD0AKnLr2wdAp";

pub fn validate_chain<'a>(chain_data: ListIterator<'a>, client_data: &'a str) -> Option<(Value, Value)> {
let verifier = Verifier::create().build().unwrap();
Expand Down

0 comments on commit 5a8a22d

Please sign in to comment.