You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New call GET /escrow/{idCode}
returns address, e.g 0x67a8b88e...
verify that the idCode hasn't yet been approved
verify with LdapService that it is a valid ID code
if idCode is already present in local database, then return it. ADD-ON: also check if the eth address has been approved on chain. ADD-ON-2: should actually generate new key every time for privacy.
generate privKey, pubKey, address
store all three, encrypt(privKey) with a password stored on file system
approve on chain, mark as escrow in EthereumAccount domain object
return response with address and approval transactionHash
Update call POST /authenticate/...
after approval check if this idCode has escrow accounts that have positive balance
create transfer(s) from the escrow account(s) to the new account
copy over original references from the escrow transfers to new
add a new field to response to return an array, e.g escrow: [ {amount_1, txHash_1}, {amount_2, txHash_2}]
Update call GET /account/{idCode}
add an AuthorisationType.escrow to ethereum account
New call GET /escrow/statistics
return some stats, like { balance: 203, idCodes: 32, addresses: 82 }
Client
wait until the escrow creation is mined before push send
refresh keys / to show new balance after approval
Challenges
sending it twice through wallet-server will charge fees twice... So if I send 1.00EUR to escrow, the person eventuallly receives 0.99 EUR.
The text was updated successfully, but these errors were encountered:
New call
GET /escrow/{idCode}
returns address, e.g 0x67a8b88e...
idCode
hasn't yet been approvedLdapService
that it is a valid ID codeidCode
is already present in local database, then return it. ADD-ON: also check if the eth address has been approved on chain. ADD-ON-2: should actually generate new key every time for privacy.encrypt(privKey)
with a password stored on file systemEthereumAccount
domain objectUpdate call
POST /authenticate/...
idCode
has escrow accounts that have positive balanceescrow: [ {amount_1, txHash_1}, {amount_2, txHash_2}]
Update call
GET /account/{idCode}
AuthorisationType.escrow
to ethereum accountNew call
GET /escrow/statistics
{ balance: 203, idCodes: 32, addresses: 82 }
Client
Challenges
The text was updated successfully, but these errors were encountered: