Class uri

Namespace: keychain

#include "keychain/cache/uri.hpp"

Inheritance: uri

Definition

Uri is a location on a blockchain. It is used to direct Gateways where to find certificates on the blockchain, typically for pairing. Its serialization format may change over library versions, so regard this as an opaque object.

Constructors

uri(); uri(std::string uri_string); uri(std::string encr_txid, size_t encr_vout, std::string sign_txid, size_t sign_vout)

Method Summary

Return Type Method and Description

bool

is_null()

Whether the URI is NULL.

std::string

to_string()

Serialize the URI as an UTF-8 string.

Methods

is_null() Method

bool is_null();

Whether the URI is NULL.

Parameters

None

Returns

bool

true, is the URI is NULL; false, otherwise.

to_string() Method

std::string to_string();

Serialize the URI as an UTF-8 string

Parameters

None

Returns

std::string

UTF-8 serialization of the URI.