2025년 국내 은행 업권의 AI 기반 사업 현황

이미지
2025년 국내 은행 업권의 AI 기반 사업 현황 2025년 국내 주요 은행들은 AI 기술을 활용하여 금융 서비스의 혁신과 효율성을 극대화하고 있습니다. 각 은행은 생성형 AI, 머신러닝, XAI 등을 활용하여 고객 경험 개선, 내부 업무 자동화, 신용평가 고도화 등 다양한 영역에서 AI 기반 서비스를 도입하고 있습니다. 은행별 주요 AI 기능 및 서비스        은행 주요 기능 및 서비스 진행 일정 신한은행 - AI 뱅커 기반 ‘디지털 데스크’와 무인점포 ‘AI 브랜치’ 운영- 감정 인식 분석을 통한 금융사고 예방 - 생성형 AI 기반 투자 및 금융지식 Q&A 서비스 2024년부터 점포 확대 및 2025년 상반기까지 생성형 AI 플랫폼 구축 예정 • 생성형   AI  기반  AI  은행원 • 생성형   AI  투자 및  금융지식  Q&A  서비스 NH농협은행 - 모든 영업점에 AI 뱅커 배치 -  AI  금융상품 추천 서비스 출시 ( XAI)   XAI를 활용한 금융상품 추천 서비스- 외국인 및 고령층을 위한 상담 서비스 제공 - 기업 대출 심사  AI  도입 2024년부터 적용 시작, 2025년까지 전국 확대 • 생성형   AI  플랫폼 기반 금융서비스 KB국민은행 • AI  금융비서 서비스 베타  오픈 - ‘리브 넥스트’의 AI 금융비서 베타 서비스- KB-GPT 및 KB-AI OCR 기술 활용- 생성형 AI 금융상담 Agent 도입 • 의심거래 보고 (STR) AI  적용 2024년부터 PoC 진행, 2025년 상반기까지 상용화 예정 • 생성형   AI  플랫폼 기반 금융서비스 우리은행 - ‘우리WON뱅킹’ 내 대출 상담 확장- 이상 외화 송금 탐지 프로세스 도입 • 생성형   AI  기반 ...

(truffle 환경 설정) Truffle compiler 오류 대처 - Error: Failed to fetch the Solidity compiler from the following locations



(truffle 환경 설정) Truffle compiler 오류 대처
- Error: Failed to fetch the Solidity compiler from the following locations

 
Truffle 을 사용하는 환경이 인터넷 사용이 안되거나  HTTPS와 같은 프로토콜이 차단된 환경에서 발생하는 문제입니다.
특히  금융 환경처럼 망분리가 되어 있는 환경은 https를  강제로  http로 변환해서 통신하는 데이터를 감시하고 있습니다. 그래서 https로 작동되는 외부 소스다운로드의 경우 오류가 발생  합니다. 이러한 경우 인터넷에 검색해도 나오지 않는 오류 해결 방법이 있어서 공유 합니다.  (
 한참 이리저리  찾아 헤메다가  ㅠㅠ)

Truffle 설치 와 스마트 계약(Smart Contract) 개발

1. Truffle 설치 - 스마트 계약 개발 환경 구성 (truffle, ganache-cli, solc )
    - npm install -g truffle
    - npm install -g ganache-cli
    - npm install -g solc

2. Truffle 사용 - 스마트 계약(Smart Contract)개발
   - truffle create contract YourContractName
   - truffle create test YourTestName 

3. [Truffle 환경 설정] 컴파일 오류 대처 - Error: Failed to fetch the Solidity compiler from the following locations:
     - Are you connected to the internet?

4.  [Truffle 환경 설정] Deploy 오류 대처 - Error: Could not find artifacts for SimpleStorage from any sources
  - throw new Error("Could not find artifacts for " + import_path + " from any sources");

 



 ㅁ Truffle 명령을 이용한 스마트 계약 개발과 컴파일


# Truffle을 이용하여 스마트 컨트렉트를 이용하는 명령은 다음과 같습니다.
$ ganache-cli  -h 0.0.0.0 -p 8545 &  # 테스트용 블록체인 네트웍을 작동 합니다.

$ truffle init
->  smart contract  소스를 작성 합니다.
$ truffle compile
$ truffle migration ./migration/deploy_someContract.js
$ truffle deploy
$ truffle test ./test/someContrace_test.js

이번에는 truffle compile 에 대한 실행시 발생하는 오류에 대하여 알아 보고자 합니다.




 

1. Truffle compile 과정에서 오류가 발생  

Error: Failed to fetch the Solidity compiler from the following locations ~~~ ~~~ Are you connected to the internet?
Truffle을 예제를 따라서 컴파일을 하는데  이 컴파일 오류가 발생 합니다.

인터넷을 찾아보면 solc 컴파일러를 설치하라고 하지만 컴파일러는 설치를 했기에 문제가 없습니다.

[ipman@vm1 truffle2]$ truffle compile contracts/SimpleStorage.sol

Compiling your contracts...
===========================
? Fetching solc version list from solc-bin. Attempt #1
? Fetching solc version list from solc-bin. Attempt #2
? Fetching solc version list from solc-bin. Attempt #3
? Fetching solc version list from solc-bin. Attempt #4
? Fetching solc version list from solc-bin. Attempt #5
? Fetching solc version list from solc-bin. Attempt #6
Error: Failed to fetch the Solidity compiler from the following locations: https://relay.trufflesuite.com/solc/emscripten-wasm32/,https://binaries.soliditylang.org/emscripten-wasm32/,https://relay.trufflesuite.com/solc/emscripten-asmjs/,https://binaries.soliditylang.org/emscripten-asmjs/,https://solc-bin.ethereum.org/bin/,https://ethereum.github.io/solc-bin/bin/. Are you connected to the internet?


    at VersionRange.<anonymous> (/app_svc/.nvm/versions/node/v18.17.0/lib/node_modules/truffle/build/webpack:/packages/compile-solidity/dist/compilerSupplier/loadingStrategies/VersionRange.js:200:1)
    at Generator.next (<anonymous>)

 
컴파일러는 설치가 되어서 정상 작동하는 데 왜 오류가 나는지는 인터넷을 찾아도 답을 찾을수 없었습니다.

# 컴파일러는 정상 작동합니다.
# 아래 와 같이 컴파일 결과 파일들이 만들수 있습니다.
[ipman@vm1 contracts]$ solcjs --bin --abi SimpleStorage.sol
-rw-r--r--. 1 ipman ipman 268  8월  1 07:36 SimpleStorage.sol
-rw-r--r--. 1 ipman ipman 292  8월  3 17:35 SimpleStorage_sol_SimpleStorage.abi
-rw-r--r--. 1 ipman ipman 704  8월  3 17:35 SimpleStorage_sol_SimpleStorage.bin

 
 

2. 오류 원인 과 해결 방법 : 

Error: Failed to fetch the Solidity compiler from the following locations: ~~~ Are you connected to the internet?

version: "^0.8.0" 은 0.8.x  이상의 컴파일러를 이용하도록 하지만 로컬에서 solcjs가 인터넷과 연결되지 않아 설치가 되지 않아 버전 확인이 안되는 경우로 파악 됩니다.   

이런 경우에 로컬에 설치된 solc 버전 으로 설정을 수정하면 됩니다.  현재 로컬에는 0.8.4와 0.8.21  버전이 설치되어 있어서 
 
version: "^0.8.0" 을   version: "0.8.21",  또는   version:"0.8.4"  로 수정하면 컴파일이 됨을 확인 했습니다.
 

1) Solidity compiler 설치와 버전 확인

npm install solc 를 이용하여 solcjs를 설치 합니다.

[ipman@vm1 mySmartContract]$ npm install solc -g

changed 9 packages in 526ms


[ipman@vm1 mySmartContract]$ npm list solc -g
/app_svc/.nvm/versions/node/v18.17.0/lib
--- solc@0.8.21
 --- truffle@5.11.1
  --- @truffle/debugger@12.1.1
    --- @ensdomains/ensjs@2.1.0
      --- @ensdomains/ens@0.4.5
        --- solc@0.4.26

 
설치된 solc 버전을 확인하니 0.8.21 입니다.

[ipman@vm1 truffle2]$ solcjs --version
0.8.21+commit.d9974bed.Emscripten.clang



2) truffle-config.js에 컴파일러 버전명을 명시적으로 수정하여 해결 

다음과 같이 solcjs 의 버전에 맞추어  truffle-config.js 의 컴파일러 버전을 수정합니다.

version: "^0.8.0" 은 0.8.x  이상의 컴파일러를 이용하도록 하지만 로컬에서 solcjs가 인터넷과 연결되지 않아 설치가 되지 않아 버전 확인이 안되는 경우로 파악 됩니다. 

이런 경우에   version: "^0.8.0" 을   version: "0.8.21",  또는   version:"0.8.4"  로 수정하면 작동이 됩니다.

module.exports = {
// contracts_directory tells Truffle where the contracts you want to compile are located
contracts_directory: './contracts/local-dev',

// contracts_build_directory tells Truffle where to store compiled contracts
contracts_build_directory: './build/local-contracts',

  networks: {
    // Useful for testing. The `development` name is special - truffle uses it by default
    //
     development: {
      host: "127.0.0.1",     // Localhost (default: none)
      port: 8545,            // Standard Ethereum port (default: none)
      network_id: "*",       // Any network (default: none)
     },
  },

  // Configure your compilers
  compilers: {
    solc: {
      version: "0.8.21",      // Fetch exact version from solc-bin (default: truffle's version)
    }
  },

};

 
ㅁ 다시 컴파일러를 수정하고  truffle compile을 실행하면 정상 작동 됩니다.

[ipman@vm1 truffle2]$ truffle compile contracts/SimpleStorage.sol

Compiling your contracts...
===========================
> Compiling ./contracts/SimpleStorage.sol
> Artifacts written to /app_svc/truffle2/build/local-contracts
> Compiled successfully using:
   - solc: 0.8.21+commit.d9974bed.Emscripten.clang

 
 
https://solc-bin.ethereum.org/bin/,https://ethereum.github.io/solc-bin/bin/. Are you connected to the internet? 에 대한 오류 해결이 되었나요 ... 혹시 안되면 댓글 달아 주시면 답변 드리겠습니다.

감사합니다.
 

[참조]
https://trufflesuite.com/docs/truffle/reference/configuration/

댓글

이 블로그의 인기 게시물

Kraken api - get token with python

[좋은글] 나침반의 바늘이 흔들리는 한 그 나침반은 틀리는 일이 없다 - 신영복

( 경영전략,사업전략 ) 마이클 포터의 가치사슬 분석(Value Chain Analysis) 이론