Struct ln_types::node_pubkey::NodePubkey [−][src]
pub struct NodePubkey(pub PublicKey);secp256k1 only.Expand description
Newtype over secp256k1::PublicKey representing a deserialized key identifying an LN node.
This can be considered similar to NodeId with these differences:
NodeIdis more performant for non-cryptographic operations.NodeIdcan not perform any cryptographic operations itself.NodePubkey, despite its field being public, maintains more invariants. In this library, a validNodeIdis not guaranteed to be a validNodePubkey
Tuple Fields
0: PublicKeyThe underlying public key used for cryptographic operations.
Implementations
Convenience conversion method.
This is more readable and less prone to inference problems than Into::into.
Computes public key from a secret key and stores it as NodePubkey.
Trait Implementations
Mutably borrows from an owned value. Read more
Shows NodePubkey as hex
Performs the conversion.
Performs the conversion.
Performs the conversion.
Supports BYTEA, TEXT, and VARCHAR.
Decoded as bytes if BYTEA is used, as hex string otherwise.
Expects hex representation
Writes human-readable description of the type to the writer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Supports BYTEA, TEXT, and VARCHAR.
Stored as bytes if BYTEA is used, as hex string otherwise.
Expects hex representation
Expects hex representation
Expects hex representation
Currently uses Display but may use emit_bytes if/when it’s implemented.
Auto Trait Implementations
impl RefUnwindSafe for NodePubkey
impl Send for NodePubkey
impl Sync for NodePubkey
impl Unpin for NodePubkey
impl UnwindSafe for NodePubkey
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a reference to self as a ToSql trait object.
