Class Uri

Module: keychain

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(uri_string);

Method Summary

Return Type Method and Description

bool

eq(other)

Whether the URI is equal to other.

std::string

str()

Serialize the URI as an UTF-16 string.

Methods

eq() Method

bool __eq__(other_uri);

Whether the URI is equal to another URI.

Parameters

other_uri, another URI object

Returns

bool

true, is the URI’s string representation is lexographically equal to other_uri’s string representation; false, otherwise.

str() Method

__str__();

Serialize the URI as an UTF-16 string

Parameters

None

Returns

string

UTF-16 serialization of the URI.