기존에 Caver를 이용해서 RoleBasedKeyring관련하여 문의드립니다

기존에

List<String[]> newRoleBasedKeyList = new ArrayList<String[]>();

String newZPKey = TokenUtils.checkIfZeroPaddingKey(privateKey);
newRoleBasedKeyList.add(new String[] {initRBKey.getTxRoleKeyManaged(), newZPKey});
newRoleBasedKeyList.add(new String[] {initRBKey.getAccountRoleKey()});
newRoleBasedKeyList.add(new String[] {newZPKey});

AbstractKeyring targetKering = caver.wallet.keyring.create(address, newRoleBasedKeyList);

와 같이 RoleBaseKey의 정보를 가져와서 AbstractKeyring으로 서비스를 하고 있었습니다.

Kaia로 전환하면서 Git을 분석해보니

Web3j web3j = web3jProvider.get();

        Accounts accounts = new Accounts();

        // Role에 해당하는 PrivateKey 설정, 순서 상관없음...?
        // Transaction Role
        accounts.add(testPrivateKey);
        // Manage Role
        accounts.add(testPrivateKey2);
        // Account Role
        accounts.add(testPrivateKey3);

        List<KaiaCredentials> result = accounts.getList();
        log.info("============= result : {}", objectToString(result));

와 같이 써도 될것 같은데 순서에 상관없이 account.add(RoleKey), account.add(AccountKey), account.add(TransactionKey) 형식으로 add해서 사용하면 될까요?