pub struct Privkey(pub [u8; 32]);Expand description
A private key byte array (32 bytes), serialized as hex without 0x prefix.
On deserialization, only hex format and 32-byte length are checked.
Both 0x-prefixed and non-prefixed hex strings are accepted on input.
Cryptographic validation is left to the RPC layer’s conversion to internal Privkey.
Tuple Fields§
§0: [u8; 32]Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Privkey
impl<'de> Deserialize<'de> for Privkey
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
Source§impl JsonSchema for Privkey
impl JsonSchema for Privkey
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for Privkey
impl Ord for Privkey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Privkey
impl PartialOrd for Privkey
impl Copy for Privkey
impl Eq for Privkey
impl StructuralPartialEq for Privkey
Auto Trait Implementations§
impl Freeze for Privkey
impl RefUnwindSafe for Privkey
impl Send for Privkey
impl Sync for Privkey
impl Unpin for Privkey
impl UnsafeUnpin for Privkey
impl UnwindSafe for Privkey
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