{
  "tcID":"INT-ACCUP-023",
  "tcName":"RoleBasedKeyMultisig3",
  "test":[
    {
      "tx": {
        "type": "VALUE_TRANSFER",
        "to": "random",
        "value": "1000000000000000000",
        "gas": 1000000
      },
      "expected": {
        "status": true
      }
    },
    {
      "tx": {
        "type": "ACCOUNT_UPDATE",
        "from": "random",
        "gas": 1000000,
        "accountKey": {
          "key": [
            {
              "key": {
                "x": "0x819659d4f08e08d4bd97c6ce5ed2c2eb914201a5b3731eb9d208128df24b97dd",
                "y": "0x1824267ab9e55f5a3fb1030f0299fa73fc0037305d5b1d90100e2131af41c010"
              },
              "keyType": 2
            },
            {
              "key": {
                "x": "0xa18f05a46003df6dbec8af8027227d16e6143f6f6be9ce8dd42ccc5317a14e34",
                "y": "0xd978ef11d1f850c3a4a77a2967ca0ccdce4ebae5b8e0a37488f796b97591f2c3"
              },
              "keyType": 2
            },
            {
              "key": {
                "x": "0x95c920eb2571dff37baecdbbee32897e6e448c6725c5ab73569cc6f659684307",
                "y": "0xef7839023c48acf710ad322356c12b7c5b7f475515ba7d5834f41a993f42b8f9"
              },
              "keyType": 2
            }
          ],
          "keyType": 5
        },
        "privateKey": "random.privateKey"
      },
      "expected": {
        "status": true
      }
    },
    {
      "tx": {
        "type": "ACCOUNT_UPDATE",
        "from": "random",
        "gas": 1000000,
        "accountKey": {
          "key": [
            {
              "keyType": 4,
              "key": {
                "threshold": 2,
                "keys": [
                  {
                    "weight": 1,
                    "key": {
                      "x": "0xb7cd677d0ec0b4d391abcbe05fd29897f652eeefd36b4ba15505a5993e35a88f",
                      "y": "0x6dbac9eeebd874daf73e54272928444927642e856bcd346f0115ea0e07089240"
                    }
                  },
                  {
                    "weight": 1,
                    "key": {
                      "x": "0x58e96bedab016ce2a369059bdd61224e0691bc3149242b8185aa53c69833bb73",
                      "y": "0xfcdf545b92df1bbaad97373c02cfaef5825b526150553b921e5ee0d4c38296b1"
                    }
                  }
                ]
              }
            },
            {
              "keyType": 4,
              "key": {
                "threshold": 2,
                "keys": [
                  {
                    "weight": 1,
                    "key": {
                      "x": "0x04d41e077770900fbfae72303b0a91b49b27f59220e3e440560e974ec233178b",
                      "y": "0xf8606d095d83fff157fc359379055951ae33137a0ed410c6ca6e0741f6919c80"
                    }
                  },
                  {
                    "weight": 1,
                    "key": {
                      "x": "0x26646e93cab7e18e9867ba8bc4fe9953d1501852afff0c7becfc0395c5aec019",
                      "y": "0x0956c9bf3d0aecf71807e3f11777f689a56fef1fa1eff67991b140b72152a45e"
                    }
                  }
                ]
              }
            },
            {
              "keyType": 4,
              "key": {
                "threshold": 2,
                "keys": [
                  {
                    "weight": 1,
                    "key": {
                      "x": "0xae6b72d7ce2c11520ac00cbd1c4da216171a96eae1ae3a0a1f979a554c9063ae",
                      "y": "0x79ddf38c8717030512f3ca6f304408a3beb51519b918b8d62a55ff4a8c165fea"
                    }
                  },
                  {
                    "weight": 1,
                    "key": {
                      "x": "0xd4256fc43f42b3313b7204e42a82893a8d9b562f6c9b39456ee989339949c67c",
                      "y": "0xfc5e78e71b26f5a93b5bec454e4d63947576ffd23b4df624579ff4eb67a2a29b"
                    }
                  }
                ]
              }
            }
          ],
          "keyType": 5
        },
        "privateKey": "0x0c5f6794206d110f31a22e05c32093dd1daaa27b0ada8b0ed4d7236bf289f9b8"
      },
      "expected": {
        "status": true
      }
    },
    {
      "api":{
        "method":"klay_getAccountKey",
        "params":["random", "latest"]
      },
      "expected": {
        "key": [
          {
            "keyType": 4,
            "key": {
              "threshold": 2,
              "keys": [
                {
                  "weight": 1,
                  "key": {
                    "x": "0xb7cd677d0ec0b4d391abcbe05fd29897f652eeefd36b4ba15505a5993e35a88f",
                    "y": "0x6dbac9eeebd874daf73e54272928444927642e856bcd346f0115ea0e07089240"
                  }
                },
                {
                  "weight": 1,
                  "key": {
                    "x": "0x58e96bedab016ce2a369059bdd61224e0691bc3149242b8185aa53c69833bb73",
                    "y": "0xfcdf545b92df1bbaad97373c02cfaef5825b526150553b921e5ee0d4c38296b1"
                  }
                }
              ]
            }
          },
          {
            "keyType": 4,
            "key": {
              "threshold": 2,
              "keys": [
                {
                  "weight": 1,
                  "key": {
                    "x": "0x4d41e077770900fbfae72303b0a91b49b27f59220e3e440560e974ec233178b",
                    "y": "0xf8606d095d83fff157fc359379055951ae33137a0ed410c6ca6e0741f6919c80"
                  }
                },
                {
                  "weight": 1,
                  "key": {
                    "x": "0x26646e93cab7e18e9867ba8bc4fe9953d1501852afff0c7becfc0395c5aec019",
                    "y": "0x956c9bf3d0aecf71807e3f11777f689a56fef1fa1eff67991b140b72152a45e"
                  }
                }
              ]
            }
          },
          {
            "keyType": 4,
            "key": {
              "threshold": 2,
              "keys": [
                {
                  "weight": 1,
                  "key": {
                    "x": "0xae6b72d7ce2c11520ac00cbd1c4da216171a96eae1ae3a0a1f979a554c9063ae",
                    "y": "0x79ddf38c8717030512f3ca6f304408a3beb51519b918b8d62a55ff4a8c165fea"
                  }
                },
                {
                  "weight": 1,
                  "key": {
                    "x": "0xd4256fc43f42b3313b7204e42a82893a8d9b562f6c9b39456ee989339949c67c",
                    "y": "0xfc5e78e71b26f5a93b5bec454e4d63947576ffd23b4df624579ff4eb67a2a29b"
                  }
                }
              ]
            }
          }
        ],
        "keyType": 5
      }
    }
  ]
}
