진행상황 2021 Sep 13
Mon Sep 13, 2021Last modified: Mon Sep 13, 2021
-
Categories: (directories)
-
Tags: (sub-directories)
-
Series: (travel the world of knowledge!)
현재 캐터필러 순서:
- 레지스트리 등록
- 폴리시(액세스컨트롤 용) 등록
- 비즈니스모델(bpm) 등록
- 폴리시+비즈니스모델 바인딩
- 인스턴스 생성
- 각 단계마다 폴리시에 적힌 role 대로 비즈니스 프로세스 진행
DID 캐터필러 순서:
- 레지스트리 등록
- Attribute+bpm 등록 (이때, attribute 수정 가능하도록 set함수 정의, attribute을 수정가능한 meta-attribute set 함수 정의, 각 블록의 연결부 설정-다른 컨트랙트의 어떤 함수와 연결할지 설정하는 함수, 그 설정을 바꿀수 있는 meta-attribute 설정 함수)
- in and out 컨트랙트 설정하고 다른 비즈니스와 연결 검증된 사용자는 비즈니스 프로세스 진행
- (Ex) customer 는 배열의 데이터로 취급.
배송완료 message 수신시 배열데이터 해제.
특징:
-
새로운 contract 객체를 생성하지않음.
- 원래는 customer 가 주문을 넣으면 새로운 인스턴스가 생성되었음.
- (계속 새로운 생성, 실제 요구되는 기능에 비해 과도한 작업?)
-
뷰 페이지에서 로그인된 did의 attribute에 따라 열람할수 있는 범위 설정.
- none / view / write
-
각 비즈니스 참여자는
issuer(회사 담당부서)에게 먼저 vc를 발급받았다는 가정.- 캐터필러에서는 release, nominate 라는 과정이 있는데,
이를 통해 Dynamic role change가 가능한것으로 보임. - 이를 did 로 구현하려면 dynamic credentialStatus 관리가 필요함.
- Vote는 여러 role(주체)의 추천을 받아야만 nominate or release 가능.
다중 서명의 느낌? Did 로는 여러 issuer 들로 부터 받은 vc 로 presentation document 만들면 구현 가능할것으로 예상.
- 캐터필러에서는 release, nominate 라는 과정이 있는데,
개선 기능? 요구 사항:
- 비즈니스 단계마다 verifier 가 있어야함.
➜ 각 bpm 태그 마다 attribute세팅 해야함. - Solidity 변환과정 변경
➜ contract 에서 자동으로 verifiy 해야함. - 각 bpm 태그마다 in and out 설정해야함.
➜ 블록식으로 서로 다른 비즈니스끼리 분산환경에서 연결할수 있도록
배경 개념:
- vote , release 어떤 방식으로 되는지
endorsed―추천― 된 사람을
정해진 롤을 가진 주체가 투표하면 nominate or release 되는 형식인듯.
처음에 policy 업로드 할때 정해짐. - What is registry?
Caterpillar uses the “Runtime registry”
to store each contract deployed
as well as the relations among contracts.
reference
image

text
BindingPolicySpecification.txt
{ Customer is case-creator;
Customer nominates Supplier;
Under Shipment, Supplier nominates Candidate;
Under Shipment, Supplier nominates Carrier in Candidate endorsed-by Customer;
Under Carrier_Invoicing, Carrier nominates Invoicer endorsed-by Supplier and Customer;
Under Carrier_Invoicing, Customer nominates Invoicee endorsed-by Carrier;
Under Supplier_Invoicing, Supplier nominates Invoicer endorsed-by Customer;
Under Supplier_Invoicing, Supplier nominates Invoicee endorsed-by Customer }
{}
v2.1- Dynamic Role Binding + Access Control (Initial Commit)
Latest commit fe8b211 on 6 Dec 2018