Add a mempool

This commit is contained in:
Luke Parker
2023-04-12 12:15:38 -04:00
parent 7c7f17aac6
commit be947ce152
6 changed files with 167 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ mod provided;
pub fn random_signed<R: RngCore + CryptoRng>(rng: &mut R) -> Signed {
Signed {
signer: <Ristretto as Ciphersuite>::G::random(&mut *rng),
nonce: u32::try_from(rng.next_u64() >> 32).unwrap(),
nonce: u32::try_from(rng.next_u64() >> 32 >> 1).unwrap(),
signature: SchnorrSignature::<Ristretto> {
R: <Ristretto as Ciphersuite>::G::random(&mut *rng),
s: <Ristretto as Ciphersuite>::F::random(rng),