pub struct PublicKey(pub [u8; 33]);Expand description
A 33-byte public key for secp256k1 and ed25519 DSA types.
Public keys on the XRP Ledger are 33 bytes and can be either:
- secp256k1: Compressed ECDSA public key (0x02 or 0x03 prefix)
- ed25519: EdDSA public key (0xED prefix)
§Derived Traits
PartialEq, Eq: Enable comparisons and use in collectionsDebug, Clone: Standard traits for development and consistency
Note: Copy is intentionally not derived due to the struct’s size (33 bytes).
Tuple Fields§
§0: [u8; 33]Trait Implementations§
impl Eq for PublicKey
impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
impl Freeze for PublicKey
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnsafeUnpin for PublicKey
impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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