cfxdb.xbrmm.offer

Classes

IndexOfferByKey

Index: key_id -> offer_id

Offer

Data encryption key offerings by XBR providers.

Offers

Persisted data encryption key offers.

_OfferGen

Expand methods on the class code generated by flatc.

Module Contents

class IndexOfferByKey(slot=None, compress=None)[source]

Bases: zlmdb.MapUuidUuid

Index: key_id -> offer_id

class Offer(from_fbs=None)[source]

Bases: object

Data encryption key offerings by XBR providers.

__str__()[source]
_api = None[source]
_categories = None[source]
_copies = None[source]
_expires = None[source]
_from_fbs = None[source]
_key = None[source]
_offer = None[source]
_price = None[source]
_remaining = None[source]
_seller = None[source]
_seller_authid = None[source]
_seller_session_id = None[source]
_signature = None[source]
_timestamp = None[source]
_uri = None[source]
_valid_from = None[source]
property api: uuid.UUID[source]

ID of the API the encrypted data (this key is for) is provided under.

Returns:

build(builder)[source]
static cast(buf)[source]
property categories: dict[source]

Dictionary of optional user defined categories the specific data that is provided falls under.

property copies: int[source]

Optional maximum number of times this data encryption key is to be sold or 0 for unlimited.

property expires: numpy.datetime64[source]

Optional data at which this offer expires (epoch time in ns).

property key: uuid.UUID[source]

ID of the data encryption key offered.

marshal() dict[source]
property offer: uuid.UUID[source]

ID of the data encryption key offer.

property price: int[source]

Price of data encryption key in XBR tokens.

property remaining: int[source]

Remaining number of copies to be sold (if “copies” is set >0, otherwise 0).

property seller: bytes[source]

Address of the XBR provider offering the data encryption key.

property seller_authid: str[source]

WAMP session authid of the caller that originally placed this offer.

property seller_session_id: int[source]

WAMP session ID of the caller that originally placed this offer.

property signature: bytes[source]

Seller delegate signature for the offer. The signature covers all information of the original offer placement request and requestor.

property timestamp: numpy.datetime64[source]

Offer transaction time (epoch time in ns)

property uri: str[source]

URI under which the data encrypted with the key offered is provided under.

property valid_from: numpy.datetime64[source]

Timestamp from which the offer is valid (epoch time in ns).

class Offers(slot=None, compress=None, build=None, cast=None)[source]

Bases: zlmdb.MapUuidFlatBuffers

Persisted data encryption key offers.

Map zlmdb.MapBytes32FlatBuffers from offer_id to cfxdb.xbr.Offer

class _OfferGen[source]

Bases: cfxdb.gen.xbrmm.Offer.Offer

Expand methods on the class code generated by flatc.

FIXME: come up with a PR for flatc to generated this stuff automatically.

ApiAsBytes()[source]
classmethod GetRootAsOffer(buf, offset)[source]

This method is deprecated. Please switch to GetRootAs.

KeyAsBytes()[source]
OfferAsBytes()[source]
PriceAsBytes()[source]
SellerAsBytes()[source]
SignatureAsBytes()[source]
UriAsBytes()[source]