Bandersnatch: ring-context generic over domain size (#2581)

Serialized length is now statically computed depending on the domain
size.

Opens the primitive to more generic usages not related to Sassafras
expectations

Address one point of
https://github.com/paritytech/polkadot-sdk/issues/2364
This commit is contained in:
Davide Galassi
2023-12-01 22:50:34 +01:00
committed by GitHub
parent 5789d6a7b4
commit ecfdb2b74f
3 changed files with 70 additions and 55 deletions
+1 -1
View File
@@ -525,7 +525,7 @@ mod tests {
let store = MemoryKeystore::new();
let ring_ctx = bandersnatch::ring_vrf::RingContext::new_testing();
let ring_ctx = bandersnatch::ring_vrf::RingContext::<1024>::new_testing();
let mut pks: Vec<_> = (0..16)
.map(|i| bandersnatch::Pair::from_seed(&[i as u8; 32]).public())