{
  "decode": {
    "static": true,
    "testCases": [
      {
        "id": "CONFORMANCE-ACCOUNT-038",
        "description": "it should create an AccountKeyLegacy instance by decoding RLP Encoded string of AccountKeyLegacy.",
        "input": {
          "rlpEncodedKey": "0x01c0"
        },
        "expectedResult": {
          "status": "pass",
          "class": "AccountKeyLegacy",
          "layer": "caver.account",
          "output": {
            "keyType": 1
          }
        }
      },
      {
        "id": "CONFORMANCE-ACCOUNT-039",
        "description": "it should throws error because given rlpEncodedKey is invalid.",
        "input": {
          "rlpEncodedKey": "0x10"
        },
        "expectedResult": {
          "status": "fail",
          "errorMessage": "invalid RLP-encoded account key string",
          "errorMessageJs": "Cannot decode to AccountKeyLegacy. The prefix must be 0x01c0: 0x10"
        }
      }
    ]
  }}