Select Git revision
-
* fix clippy * fix after rebase * WIP example specs * fix after rebase * add reproducibility * doc add missing protobuf compiler * remove ref to genesis timestamp * fix broken next identity index genesis * our pallets are not coming from the framework * fix first_ud everywhere * remove files unwanted on main branch * also apply renaming to gdev * rename first_ud_value and add comments (to put in value the absence of first_ud_time) * use index provided in GenesisIdty * add mold to documentation * change gtest existential deposit and adapt genesis parsing to real-world data * embed raw chainspecs only when enabled * add comments
* fix clippy * fix after rebase * WIP example specs * fix after rebase * add reproducibility * doc add missing protobuf compiler * remove ref to genesis timestamp * fix broken next identity index genesis * our pallets are not coming from the framework * fix first_ud everywhere * remove files unwanted on main branch * also apply renaming to gdev * rename first_ud_value and add comments (to put in value the absence of first_ud_time) * use index provided in GenesisIdty * add mold to documentation * change gtest existential deposit and adapt genesis parsing to real-world data * embed raw chainspecs only when enabled * add comments
revocation.rs 633 B
use crate::*;
use sp_core::sr25519::Signature;
// TODO include prefix in RevocationPayload and use below
// use crate::runtime::runtime_types::pallet_identity::types::RevocationPayload;
type EncodedRevocationPayload = Vec<u8>;
pub fn print_revoc_sig(data: &Data) {
let (_, signature) = generate_revoc_doc(data);
println!("revocation payload signature");
println!("0x{}", hex::encode(signature));
}
pub fn generate_revoc_doc(data: &Data) -> (EncodedRevocationPayload, Signature) {
let payload = (b"revo", data.genesis_hash, data.idty_index()).encode();
let signature = data.keypair().sign(&payload);
(payload, signature)
}