/// Return an arbitrary ephemeral public key (used for proptest-based testing)
Return an arbitrary ephemeral public key (used for proptest-based testing)
Return an arbitrary ephemeral public key ( used for proptest - based testing )
pub fn arbitrary_ephemeral_public_key_bytes() -> BoxedStrategy<EphemeralPublicKeyBytes> {
    proptest::collection::vec(
        any::<u8>(),
        EphemeralPublicKeyBytes::SIZE..=EphemeralPublicKeyBytes::SIZE,
    )
    .prop_map(|bytes| {
        let mut buffer = [0u8; EphemeralPublicKeyBytes::SIZE];
        buffer.copy_from_slice(&bytes[..]);
        EphemeralPublicKeyBytes(buffer)
    })
    .boxed()
}
pub fn arbitrary_ephemeral_public_key_bytes ( ) -> BoxedStrategy < EphemeralPublicKeyBytes > { proptest :: collection :: vec ( any :: < u8 > ( ) , EphemeralPublicKeyBytes :: SIZE ..= EphemeralPublicKeyBytes :: SIZE , ) . prop_map ( | bytes | { let mut buffer = [ 0u8 ; EphemeralPublicKeyBytes :: SIZE ] ; buffer . copy_from_slice ( & bytes [ .. ] ) ; EphemeralPublicKeyBytes ( buffer ) } ) . boxed ( ) }
Return an arbitrary ephemeral public key (used for proptest-based testing)
Return an arbitrary ephemeral public key ( used for proptest - based testing )