Class verification
Namespace: keychain
#include "keychain/wallet/verification.hpp"
Inheritance: verification
Definition
A verification
object contains result of a gateway’s attempt to verify one of the signatures on signed data. The gateway
verify methods return an array of verification
objects, one for each signature in the data. The verification
object provides information on whether the signature was cryptographically valid, whether the identity of the signature’s owner is known as a contact, and other attributes.
Applications should use the information provided to implement logic about whether to accept the data and how to handle errors.
Constructors
The verification
object should not be instantiated directly by the developer, as it is instantiated and returned by gateway
cryptographic verification methods.
Method Summary
Return Type | Method and Description |
---|---|
|
Whether the data’s signature was cryptographically verified with the data’s specified public key. |
|
Whether the data signature’s public key is associated with a known contact/persona. |
Get the |
|
Int64 |
Get the signatures’s timestamp in milliseconds since the epoch. |
Methods
is_verified() Method
bool is_verified();
Determines whether data’s signature was cryptographically verified with the public key specified in a signed data structure.
signer_is_known() Method
bool signer_is_known();
Determines whether data’s signature public key is contained in a locally stored keychain of either either an internal persona or a previously paired contact.
get_facade() Method
Facade get_facade();
Get the facade
that is associated internally with the data’s public key. The data’s public key (or a reference to it) is included in the signed data string.