pub struct SignMessage(pub String);
Expand description
Result of the JSON-RPC method signmessage
.
signmessage “address” “message”
Sign a message with the private key of an address
Arguments:
- “address” (string, required) The bitcoin address to use for the private key.
- “message” (string, required) The message to create a signature of.
Tuple Fields§
§0: String
The signature of the message encoded in base 64.
Implementations§
Source§impl SignMessage
impl SignMessage
Sourcepub fn into_model(self) -> Result<SignMessage, MessageSignatureError>
pub fn into_model(self) -> Result<SignMessage, MessageSignatureError>
Converts version specific type to a version nonspecific, more strongly typed type.
Trait Implementations§
Source§impl Clone for SignMessage
impl Clone for SignMessage
Source§fn clone(&self) -> SignMessage
fn clone(&self) -> SignMessage
Returns a copy of the value. Read more
1.0.0 · 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 SignMessage
impl Debug for SignMessage
Source§impl<'de> Deserialize<'de> for SignMessage
impl<'de> Deserialize<'de> for SignMessage
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 PartialEq for SignMessage
impl PartialEq for SignMessage
Source§impl Serialize for SignMessage
impl Serialize for SignMessage
impl Eq for SignMessage
impl StructuralPartialEq for SignMessage
Auto Trait Implementations§
impl Freeze for SignMessage
impl RefUnwindSafe for SignMessage
impl Send for SignMessage
impl Sync for SignMessage
impl Unpin for SignMessage
impl UnwindSafe for SignMessage
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