Managing commands for an account and its attributes
Available in the core.
core.auth.pk.new - Account registration
id : String
- EON-ID of the account.key : String
- public key in Base64.alg : String
- signature algorithm. Supported byed25519
.
The command does not require a signature.
Possible errors:
"Unsupported algorithm" - unsupported public key algorithm.
"Incorrect account public key" - account ID does not match the provided key.
"Public key already exists" - the account is already registered.
Example:
Multisignature management
Multisignature control commands.
core.auth.multisign.enable - Enabling multisignature
sender : String
- EON-ID of the account.quorum : Map<String, long>
- quorum parameters.hash : String
- the hash of the recall secret in Base64.alg : String
- hash algorithm. SupportsSHA-512
.
The command is signed by the account specified in sender
and all quorum members - all accounts specified in quorum
.
Possible errors:
"Hash algorithm is not supported" - unsupported HASH algorithm was set.
"Circular links" - cyclic references appeared in the multi-signatures of quorum participants.
"Quorum value is outside range" - weight value is incorrect (should be from 1 to 100).
"Insufficient total quorum" - the total weight of the quorum participants is insufficient (the sum of all quorums must be at least 100).
Example:
core.auth.multisign.revoke - Multisignature revoke
id : String
- EON-ID of the account.secret : String
- secret.
The command does not require a signature.
Possible errors:
"Multi-signature is not enabled" - multisignature is not activated.
"Prohibited" - revoke parameters are not set.
"Secret wrong" - wrong secret.
"Unsupported hash algorithm" - unsupported HASH algorithm.
Example:
core.auth.multisign.disable - Disabling multisignature
sender : String
- EON-ID of the account.
The command is signed by the account specified in sender
.
Possible errors:
"Multi-signature is not enabled" - multisignature is not activated.
Example:
Attribute management
core.data.set - Attribute setup
sender : String
- EON-ID of the account.value : Map<Sting, String|long>
- attributes.Valid key characters:
-_.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
.Valid string values characters:
- _.~abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!*'();:@&=+$,/?%#[]
.
The command is signed by the account specified in sender
.
Possible errors:
"Incorrect property" - the properties set incorrectly.
Example:
core.data.del - Attribute removal
sender : String
- EON-ID of the account.value : String
- attribute names (separated by a space bar).
The command is signed by the account specified in sender
.
Possible errors:
"Unknown property" - removes the unknown property.
Example:
state.attribute.set - Setting an account attribute
sender : String
- EON-ID of the account.value : Map<Sting, String|long>
- attributes.Valid key characters:
-_.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
.Valid string values characters:
- _.~abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!*'();:@&=+$,/?%#[]
.
target : String
- Target account EON-ID.
The command is signed by the account specified in sender
.
Possible errors:
"Incorrect property" - the properties are set incorrectly .
Example:
state.attribute.del - Deleting an account attribute
sender : String
- EON-ID of the account.value : String
- attribute names (separated by a space bar).target : String
- Target account EON-ID.
The command is signed by the account specified in sender
.
Possible errors:
"Unknown property" - the unknown property is deleted.
Example:
Last updated