hfc.fabric_network.inmemorywalletstore

Module Contents

Classes

InMemoryWalletStore()

InMemoryWalletStore stores the identities of users and admins

class hfc.fabric_network.inmemorywalletstore.InMemoryWalletStore

Bases: object

InMemoryWalletStore stores the identities of users and admins in memory

exists(self, enrollment_id)
Returns whether or not the credentials of a user with a given enrollment_id

exists in the wallet

Parameters

enrollment_id – enrollment id

Returns

True or False

remove(self, enrollment_id)

Deletes identities of users with the given user_id

Parameters

enrollment_id – enrollment id

Returns

put(self, enrollment_id, user_enrollment)

Saves the particular Identity in the wallet

Parameters
  • enrollment_id – enrollment id

  • user_enrollment – Enrollment object

Returns

create_user(self, enrollment_id, org, msp_id, state_store=None)
Returns an instance of a user whose identity

is stored in the InMemoryWallet

Parameters
  • enrollment_id – enrollment id

  • org – organization

  • msp_id – MSP id

  • state_store – (Default value = None)

Returns

a validated user object