Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
As part of the popularisation of the Skey Network application, the blockchain account has been extended with features (dApp) to extend its usability. dApps in the SmartKey ecosystem are accounts not only for Suppliers but also for Organisations.
The Organisation account allows multiple users to use keys that are contained in that account. Access to the keys is secured through an ACL. A user can add themselves to the ACL by calling a method in the Organisation dApp attaching an activation token in the transaction.
An ACL (Access Control List) is a whitelist of wallet addresses that have access to Organisation keys.
The dAppFather in this case represents an account on the blockchain storing a list of all the Organisation audited and described decentralised applications.
Activation tokens
- these are licence tokens generated by the Organisation, giving you the ability to add your account to the Organisation's ACL. They are generated by the Organisation in any quantity and then distributed to end users’ wallets.
Data properties:
Key | Type | Required | Default value | Description |
---|---|---|---|---|
user_<address>
string
no
mobile id
Rgistered user, value is mobile Id, '?' when not set, otherwise device id string or wildcard '*'
user_note_<address>
string
no
encrypted note
Encrypted note about the account set by Organisation used for identification of blockchain addresses.
token_<assetId>
string
no
active
Activation token, value: 'active'/'inactive'
manager_<address> => <publicKey>
string
no
binary address of manager
Binary entry containing blockchain address and public key of a Manager
Functions are listed bellow:
activates organisation user, writes its mobile id
activation token
activation token must be whitelisted
mobile id must be string other than '?' and '*'
[E202] Wrong payments count - more or less than 1 payments attached
[E203] Wrong asset - wrong asset sent as payment
[E207] Forbidden id string - id string cannotcant be * or ?
[E208] Activation failed, token is inactivee - asset was deactivated
Removes key to device from organisation’s wallet
keyID - id of nft token
Invoked by owner of device or supplier
[E201] Not a key" - there is no token with given asset id
[E204] Not a device key - asset is not a device key
[E205] Not an owner address - owner address in token is incorrect
[E206] Owner not specified in device - device has no owner address specified
[E209] Not permitted - if invoking user is not supplier/owner of device
Sets mobile id if user is added to organisation and has no id specified.
user written in organisation with '?' as mobile id
[E207] Forbidden id string - mobile id is forbidden string (?/*)
[E210] Not a memberr - organisation has no such user
[E211] Cant change existing id - id was already set
Functions are listed bellow:
Adds user to organisation as a Manager
mamanager
- Address of manager performing the action
address
- Address of user to add
mobileId
- Mobile ID of user to add
note
- Note about added account. For security reasons we recommend encrypting this value beforehand. It will be stored on the blockchain as-is. Provide an empty string to not set one.
Manager has to be added to the Organisation
Address cannot be added already
Mobile ID needs to be unique
[E209] Not permitted
[E212] Incorrect user address
Transfer Activation Token(s) as a Manager.
manager
- Address of Manager performing the action
token
- Asset ID of Activation Token to send
recipient
- Address of Activation Token Recipient
amount
- Amount of Activation Tokens to send
Manager has to be added to the Organisation
Amount has to be a positive number
Organisation has to have sufficient amount of Activation Tokens on it’s wallet
[E209] Not permitted
[E212] Incorrect user address
[E213] Not an asset
[E214] Not issued by organisation
[E201] Not a key
[E202] Wrong payments count
[E203] Wrong asset
[E204] Not a device key
[E205] Not an owner address
[E206] Owner not specified in device
[E207] Forbidden id string
[E208] Activation failed, token is inactive
[E209] Not permitted
[E210] Not a member
[E211] Cant change existing id
[E212] Incorrect user address
[E213] Not an asset
[E214] Not issued by organization