Invalid permission for Per-Asset privileges

+1 vote
Dear,

software: MultiChain 2.0 alpha 4 Daemon (latest protocol 20003) compiled from source on linux CentOS-7.x

Context, two administrators "1A..." and "1K..." with blockchain paramaters:

"admin-consensus-upgrade" : 1,
"admin-consensus-admin" : 1,
"admin-consensus-activate" : 1,
"admin-consensus-mine" : 1,
"admin-consensus-create" : 1,
"admin-consensus-issue" : 1,

I am trying to use multsig with send,receive permissions "per-asset"
but received the following error message.

error code: -8
error message:
Invalid permission

""assetOne"" was issue to address 1... who has: send,receive,issue,activate
granted by both administrators.

Here is the command used in interactive mode:

chainOne: grantfrom 1... 4... assetOne.send,receive

chainOne: listpermissions * 1... true
[
    {
        "address" : "1...",
        "for" : null,
        "type" : "send",
        "startblock" : 0,
        "endblock" : 4294967295,
        "admins" : [
            "1A..."
        ],
        "pending" : [
        ]
    },
    {
        "address" : "1...",
        "for" : null,
        "type" : "receive",
        "startblock" : 0,
        "endblock" : 4294967295,
        "admins" : [
            "1A..."
        ],
        "pending" : [
        ]
    },
    {
        "address" : "1...",
        "for" : null,
        "type" : "issue",
        "startblock" : 0,
        "endblock" : 4294967295,
        "admins" : [
            "1A...",
            "1K..."
        ],
        "pending" : [
        ]
    },
    {
        "address" : "1...",
        "for" : null,
        "type" : "activate",
        "startblock" : 0,
        "endblock" : 4294967295,
        "admins" : [
            "1A...",
            "1K..."
        ],
        "pending" : [
        ]
    }
]

If the command above is replayed for global permissions with admins account, it works
as expected.

chainOne: grantfrom 1A... 4... send,receive

[
    {
        "address" : "4...",
        "isp2shaddress" : true,
        "for" : null,
        "type" : "send",
        "startblock" : 0,
        "endblock" : 4294967295,
        "admins" : [
            "1..."
        ],
        "pending" : [
        ]
    },
    {
        "address" : "4...",
        "isp2shaddress" : true,
        "for" : null,
        "type" : "receive",
        "startblock" : 0,
        "endblock" : 4294967295,
        "admins" : [
            "1..."
        ],
        "pending" : [
        ]
    }
]

Ask me if you need more informations

Thanks for your anwsers.
asked Aug 29, 2018 by anonymous

1 Answer

0 votes

I'm not sure if this solves the whole problem, but to view permissions for a particular asset:

listpermissions assetOne.* 1... true

answered Aug 29, 2018 by MultiChain
...