static uint256 user_id- the user_id, It is used for address calculation
uint256 lend_pubkey- public key of dApp. We need this field to realize that dApp_pubkey changed and we need to change lend_pubkey into every user_id’s FlexWalllet.
address owner- Address that can send message to UserIdIndex. It is address of FlexClient.
bytes name- encrypted login. We use naclbox for encryption.
name) - set msg.sender as owner. Deploy AuthIndex with
new_lend_pubkey) - Remove AuthIndex with
lend_pubkey. Deploy AuthIndex with
new_lend_pubkeyremove () - Remove AuthIndex with
dApp_pubkeyas static data and UserIDIndex address as data
uint256 static pubkey- it is
dApp_pubkey. Address is calculated from this value.
address owner- is UserIDIndex address that create this contract
constructor() - can be called only by internal message. msg.sender is owner remove () - can be called only by owner
name) - deploy UserIdIndex contract reLendIndex(
address wallets) - change
lend_pubkeyinto UserIdIndex contract(call UserIdIndex.reLendPubkey). set
new_lend_pubkeyfor every wallet from
user_id) - remove UserIdIndex contract getIndexAddress(
user_id) - return Reverse Index address.