Blockchain (Hyperledger Fabric) 13

Hyperledger Composer 정리

이번 포스팅은 제가 스터디한 내용을 적으려고 합니다! 우선 개발하는 Hyperledger Composer을 정리 해 봐야겠습니다. Development environment Frameworks : Hyperledger Fabric Hyperledger 블록체인의 기본 틀을 제공해 주는 프레임워크 프레임워크를 이용하여 블록체인 환경을 개발 기본적으로 제공해 주는 Admin Card를 이용 Tools : Hyperledger Composer Fabric를 더 체계적으로 개발을 할 수 있도록 도움을 주는 Tool Playground를 이용한 GUI개발이 가능 Development Tools를 이용하여 CLI환경 개발이 가능 여러가지 Key Concepts를 이용하여 개발에 도움을 줌 Eclipse, Visua..

Hyperledger Composer Logic(Transaction 수행) Ver. 0.0.3

Logic(Transaction 수행 작업) 설정 작성일자 2019.03.30 Ver 0.0.3 /** * @param {org.example.mynetwork.SendMoney} sendMoney * @transaction */ async function sendMoney(tx) { // 일반 사용자 정보 선언 const normal = tx.normal; // 회계 사용자 정보 선언 const accoutant = tx.accoutant; // 회비 납부 그룹 정보 선언 const groupPay = tx.groupPay; // 일반 사용자 그룹 이름 const norGroup = normal.groupName.toString(); // 회계 사용자 그룹 이름 const accGroup = accou..

Hyperledger Composer 모델링 작업 Ver. 0.0.3

모델링 작업 (.CTO파일) 작성날짜 2019.03.30 Ver 0.0.3 namespace org.example.mynetwork /** Oauth를 사용해 로그인을 한 경우 사용자 정보 유형을 추가 */ enum OauthClass{ o kakao// kakao login o naver// naver login o google// google login o nothing// 일반 회원가입 } abstract participant User identified by userId{ o String userId// 사용자 식별 ID o String userEmail// 사용자 식별 Email o String userName// 사용자 이름 o String userBirth// 사용자 생년월일 o String..

Hyperledger Composer Logic(Transaction 수행) Ver. 0.0.2

Logic(Transaction 수행 작업) 설정 작성일자 2019.02.27Ver 0.0.2/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on..

Hyperledger Composer 모델링 작업 Ver. 0.0.2

모델링 작업 (.CTO파일)작성날짜 2019.02.27Ver 0.0.2/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" B..

Hyperledger Composer Queries 작성 Ver. 0.0.1

Queries(.qry) 질의 파일 작성작성날짜 2019.02.22Ver 0.0.1query selectDues{ description: "학과별 학회비 정보" statement: SELECT org.example.mynetwork.Dues } query selectAllStudent{ description: "등록된 모든 학생 정보 검색" statement: SELECT org.example.mynetwork.Student } query selectStudentById{ description: "학번으로 학생 정보 검색" statement: SELECT org.example.mynetwork.Student WHERE (stdId == _$stdId) } query selectStudentByMajor{..

Hyperledger Composer Logic(Transaction 수행) Ver. 0.0.1

Logic(Transaction 수행 작업) 설정 작성일자 2019.02.22Ver 0.0.1/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on..

Hyperledger Composer 모델링 작업 Ver. 0.0.1

모델링 작업 (.CTO파일)작성날짜 2019.02.22Ver 0.0.1 /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" ..

Hyperledger Composer Developer 솔루션

Hyperledger Composer 개발 솔루션 튜토리얼Hyperledger Composer 블록 체인 솔루션 작성 방법몇 시간 내에 분열하는 블록 체인 혁신 아이디어실제 Hyperledger Fabric 블록 체인 네트워크와의 트랜잭션 실행블록 체인 네트워크와 상호 작용하는 샘플 생성Angular 2 Application 생성 및 실행Hyperledger Fabric v1.2 사용Ubuntu Linux 기반VSCode 혹은 Atom 에디터 필요해당 카테고리의 초기 설정 참조 개발 솔루션 실습 01. 비즈니스 네트워크 구조 만들기Business Network Definition(BND)비즈니스 네트워크 정의Hyperledger Composer의 핵심 개념Blockchain 솔루션에 대한 데이터 모델, ..

Hyperledger Fabric 웹 앱으로 실행

웹 앱으로 실행 시키는 방법- 설치 된 폴더로 이동- 터미널 창에 아래의 명령어 입력"Playground" 실행 명령문 :composer-playground -> 명령어를 실행 시키면 웹 브라우저가 열리며, 다음 주소를 입력해도 접속이 가능 함: http://localhost:8080/login (localhost대신 IP주소로 입력해도 가능)-> 웹 응용 프로그램의 "My Business Netowrks"화면에서 스크립트로 PeerAdmin@hlfv1 의 카드가 보임-> createPeerAdminCard 가 보이지 않으면 런타임을 제대로 시작할 수 없음 Playground 튜토리얼 목록- Business Network 설정- defining our assets(자산 정의)- participants a..