|
rippled
|
A public key. More...

Public Types | |
| using | const_iterator = std::uint8_t const * |
Public Member Functions | |
| PublicKey ()=default | |
| PublicKey (PublicKey const &other) | |
| PublicKey & | operator= (PublicKey const &other) |
| PublicKey (Slice const &slice) | |
| Create a public key. More... | |
| std::uint8_t const * | data () const noexcept |
| std::size_t | size () const noexcept |
| const_iterator | begin () const noexcept |
| const_iterator | cbegin () const noexcept |
| const_iterator | end () const noexcept |
| const_iterator | cend () const noexcept |
| bool | empty () const noexcept |
| Slice | slice () const noexcept |
| operator Slice () const noexcept | |
Protected Attributes | |
| std::size_t | size_ = 0 |
| std::uint8_t | buf_ [33] |
A public key.
Public keys are used in the public-key cryptography system used to verify signatures attached to messages.
The format of the public key is Ripple specific, information needed to determine the cryptosystem parameters used is stored inside the key.
As of this writing two systems are supported:
secp256k1 ed25519
secp256k1 public keys consist of a 33 byte compressed public key, with the lead byte equal to 0x02 or 0x03.
The ed25519 public keys consist of a 1 byte prefix constant 0xED, followed by 32 bytes of public key data.
Definition at line 61 of file PublicKey.h.
| using ripple::PublicKey::const_iterator = std::uint8_t const* |
Definition at line 68 of file PublicKey.h.
|
default |
| ripple::PublicKey::PublicKey | ( | PublicKey const & | other | ) |
Definition at line 185 of file PublicKey.cpp.
|
explicit |
Create a public key.
Preconditions: publicKeyType(slice) != std::nullopt
Definition at line 177 of file PublicKey.cpp.
Definition at line 192 of file PublicKey.cpp.
|
noexcept |
Definition at line 83 of file PublicKey.h.
|
noexcept |
Definition at line 89 of file PublicKey.h.
|
noexcept |
Definition at line 95 of file PublicKey.h.
|
noexcept |
Definition at line 101 of file PublicKey.h.
|
noexcept |
Definition at line 107 of file PublicKey.h.
|
noexcept |
Definition at line 113 of file PublicKey.h.
|
noexcept |
Definition at line 119 of file PublicKey.h.
|
noexcept |
Definition at line 125 of file PublicKey.h.
|
noexcept |
Definition at line 130 of file PublicKey.h.
|
protected |
Definition at line 64 of file PublicKey.h.
|
protected |
Definition at line 65 of file PublicKey.h.
1.8.17