Update Update and substrate_signers to [u8; 32] from Vec<u8>

A commit made while testing moved them from network-key-indexed to
Substrate-key-indexed. Since Substrate keys have a fixed-length, fitting within
the Copy boundary, there's no reason for it to not use an array.
This commit is contained in:
Luke Parker
2023-08-24 13:24:52 -04:00
parent 506ded205a
commit 61418b4e9f
3 changed files with 8 additions and 9 deletions

View File

@@ -125,7 +125,7 @@ pub(crate) async fn sign_batch(
key,
batch: this_batch,
}) => {
assert_eq!(&key, &id.key);
assert_eq!(key.as_slice(), &id.key);
if batch.is_none() {
assert!(PublicKey::from_raw(id.key.clone().try_into().unwrap())