티스토리 뷰

반응형

해당 글은 Hyperledger Fabric 페이지의 공식 문서를 번역 및 정리한 자료입니다.

원본 사이트 : https://hyperledger-fabric.readthedocs.io/en/release-1.4/idemixgen.html

Identity Mixer MSP configuration generator (idemixgen)

이 문서는 identity mixer 기반 MSP용 구성 파일을 만드는 데 사용할 수 있는 idemixgen 유틸리티의 사용법에 대해 설명합니다. 새로운 CA 키 쌍을 생성하기 위한 명령과 이전에 생성된 CA 키를 사용하여 MSP 구성을 작성하는 명령 중 하나를 사용할 수 있습니다.


Directory Structure(디렉토리 구조)

idemixgen 도구는 다음 구조로 디렉토리를 생성합니다.

- /ca/
    IssuerSecretKey
    IssuerPublicKey
    RevocationKey
- /msp/
    IssuerPublicKey
    RevocationPublicKey
- /user/
    SignerConfig

ca 디렉토리에는 발급자(issuer) 비밀 키 (해지(revocation) 키 포함)가 포함되어 있으며 CA에만 있어야 합니다. msp 디렉토리에는 idemix 서명을 확인하는 MSP를 설정하는 데 필요한 정보가 들어 있습니다. user 디렉토리는 기본 서명자를 지정합니다.


CA Key Generation(CA 키 생성)

identity mixer에 적합한 CA(발급자) 키는 idemixgen ca-keygen 명령을 사용하여 만들 수 있습니다. 그러면 작업 디렉토리에 camsp 디렉토리가 만들어집니다.


Adding a Default Signer(기본 서명자 추가)

idemixgen ca-keygen을 사용하여 camsp 디렉토리를 생성한 후 user 디렉토리에 지정된 기본 서명자를 idemixgen signerconfig를 사용하여 config에 추가할 수 있습니다.

$ idemixgen signerconfig -h
usage: idemixgen signerconfig [<flags>]

Generate a default signer for this Idemix MSP

Flags:
    -h, --help               Show context-sensitive help (also try --help-long and --help-man).
    -u, --org-unit=ORG-UNIT  The Organizational Unit of the default signer
    -a, --admin              Make the default signer admin
    -e, --enrollment-id=ENROLLMENT-ID
                             The enrollment id of the default signer
    -r, --revocation-handle=REVOCATION-HANDLE
                             The handle used to revoke this signer

예를 들어, 등록(enrollment) identity "johndoe", 해지(revocation) 처리 "1234" 및 admin인 조직 단위 "OrgUnit1"의 기본 서명자를 다음 명령으로 만들 수 있습니다.

idemixgen signerconfig -u OrgUnit1 --admin -e "johndoe" -r 1234


반응형
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함