pub struct TestKeyPair {
pub priv_key: &'static str,
pub pub_key: &'static [u8],
pub pub_key_hash: &'static [u8],
}Expand description
A pre-computed test key pair with derived values.
Fields§
§priv_key: &'static strHex-encoded private key (64 chars).
pub_key: &'static [u8]Compressed public key (33 bytes, SEC1).
pub_key_hash: &'static [u8]HASH160 of the compressed public key (20 bytes).
Implementations§
Source§impl TestKeyPair
impl TestKeyPair
Sourcepub fn sign_test_message(&self) -> Vec<u8> ⓘ
pub fn sign_test_message(&self) -> Vec<u8> ⓘ
Sign the fixed TEST_MESSAGE and return DER-encoded signature bytes.
Auto Trait Implementations§
impl Freeze for TestKeyPair
impl RefUnwindSafe for TestKeyPair
impl Send for TestKeyPair
impl Sync for TestKeyPair
impl Unpin for TestKeyPair
impl UnsafeUnpin for TestKeyPair
impl UnwindSafe for TestKeyPair
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more