nevermined_sdk_py.agreement_events.accessSecretStore module¶
-
nevermined_sdk_py.agreement_events.accessSecretStore.
consume_asset
(event, agreement_id, did, service_agreement, consumer_account, consume_callback, secret_store_url, parity_url, downloads_path)¶ Consumption of an asset after get the event call.
- Parameters
event – AttributeDict with the event data.
agreement_id – id of the agreement, hex str
did – DID, str
service_agreement – ServiceAgreement instance
consumer_account – Account instance of the consumer
consume_callback –
secret_store_url – str URL of secret store node for retrieving decryption keys
parity_url – str URL of parity client to use for secret store encrypt/decrypt
downloads_path – str path to save downloaded files
-
nevermined_sdk_py.agreement_events.accessSecretStore.
refund_reward
(event, agreement_id, did, service_agreement, price, consumer_account, publisher_address, condition_ids, escrow_condition_id)¶ Refund the reward to the publisher address.
- Parameters
event – AttributeDict with the event data.
agreement_id – id of the agreement, hex str
did – DID, str
service_agreement – ServiceAgreement instance
price – Asset price, int
consumer_account – Account instance of the consumer
publisher_address – ethereum account address of publisher, hex str
condition_ids – is a list of bytes32 content-addressed Condition IDs, bytes32
escrow_condition_id – hex str the id of escrow reward condition at this agreement_id