Update bsip-0040.md

This commit is contained in:
Stefan Schießl 2018-07-28 16:03:14 +02:00 committed by GitHub
parent 5b5e550c28
commit 7ae9f94d73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,24 +47,24 @@ All descriptions in this section are on a pseudo/prosa level and no recommendati
### Custom active permission and custom active authority ### Custom active permission and custom active authority
A `custom_active_permission` looks like follows (in JSON for clarification, backend serializes and stores in a different way): A `custom_active_permission` looks like follows (in JSON/pseudo for clarification):
``` ```
custom_active_permission = list of custom_active_authority items custom_active_permission = list of custom_active_authority items
custom_active_authority = { custom_active_authority = {
valid_from, // this custom active authority is valid starting at this timestamp, defaults to now valid_from, // timestamp when this is active, defaults to now
valid_to, // this custom active authority is valid until this timestamp, defaults to 1 year valid_to, // timestamp when this is invalid, defaults to 1 month
operationid, operationid, // operationid of the target operation,
authority, authority, // same as for the existing authortities (multisig with weighted accounts or keys),
asserts asserts // see below
} }
``` ```
Note: This assumes `custom_active_permission` is stored within `account_object`. Actual implementation details left to the implementer. Note: This assumes `custom_active_permission` is stored within `account_object`. Actual implementation details left to the implementer, as long as every `custom_active_permission` can be assigned to exactly one account.
### Asserts ### Asserts
The `asserts` is a list of `assert_objects` that are all together evaluated with `and` logic to evaluate a match The `asserts` is a list of `assert_objects` that are all together evaluated with `and` logic to evaluate a match
``` ```
asserts = list of assert_object asserts = list of assert_objects
assert_object = { assert_object = {
argument, // target argument of the operationid argument, // target argument of the operationid
function, // functionid to do the assert function, // functionid to do the assert