pub struct TestVectorTest {
pub parties: u32,
pub threshold: u32,
pub message: String,
pub seed: String,
pub expected_signature_hex: String,
}Expand description
[test] block: harness inputs.
Fields§
§parties: u32§threshold: u32§message: StringUTF-8 message, or "0x..." for binary. Either form decodes to
raw bytes via TestVectorTest::message_bytes.
seed: StringHex seed ("0xdeadbeef") for the deterministic RNG.
expected_signature_hex: StringOptional expected signature / output, hex-encoded.
Implementations§
Source§impl TestVectorTest
impl TestVectorTest
Sourcepub fn message_bytes(&self) -> Vec<u8> ⓘ
pub fn message_bytes(&self) -> Vec<u8> ⓘ
Decode message to raw bytes. "0x..." is hex; anything else is
the literal UTF-8 bytes of the string.
Sourcepub fn expected_bytes(&self) -> Option<Vec<u8>>
pub fn expected_bytes(&self) -> Option<Vec<u8>>
Decode the expected-output hex into bytes, if present.
Trait Implementations§
Source§impl Clone for TestVectorTest
impl Clone for TestVectorTest
Source§fn clone(&self) -> TestVectorTest
fn clone(&self) -> TestVectorTest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TestVectorTest
impl Debug for TestVectorTest
Source§impl<'de> Deserialize<'de> for TestVectorTest
impl<'de> Deserialize<'de> for TestVectorTest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TestVectorTest
Source§impl PartialEq for TestVectorTest
impl PartialEq for TestVectorTest
Source§fn eq(&self, other: &TestVectorTest) -> bool
fn eq(&self, other: &TestVectorTest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TestVectorTest
Auto Trait Implementations§
impl Freeze for TestVectorTest
impl RefUnwindSafe for TestVectorTest
impl Send for TestVectorTest
impl Sync for TestVectorTest
impl Unpin for TestVectorTest
impl UnsafeUnpin for TestVectorTest
impl UnwindSafe for TestVectorTest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more