기밀 도매 CBDC 체인 코드 패키지

Oracle Blockchain Platform Digital Assets Edition에는 도매 중앙 은행 디지털 통화(CBDC) 시나리오의 기밀 버전에 대한 샘플 체인 코드가 포함되어 있습니다.

도매 CBDC 기밀 체인 코드 패키지는 기밀 지불 기능을 추가하여 원래 도매 CBDC 체인 코드 패키지와 동일한 시나리오에 대한 방법을 구현합니다. 체인코드는 확장된 토큰 분류법 프레임워크 표준을 사용하며, 기밀 결제와 함께 작동하고 도매 CBDC 시나리오에 맞게 사용자정의되도록 향상되었습니다. 피아트 통화를 나타내는 토큰은 금융 기관에서 보유되며 규제 금융 기관에서 발행 및 관리합니다. 블록체인 앱 빌더를 사용하여 TypeScript의 WholesaleCBDC-Confidential.yml 사양 파일에서 이 체인코드를 생성할 수 있습니다.

도매 CBDC 체인코드 패키지는 Oracle Blockchain Platform 콘솔에서 다운로드할 수 있으며 다음 구성 요소를 포함합니다.
  • WholesaleCBDC-Confidential.zip - 배치를 위해 패키지화된 체인코드를 포함하는 아카이브 파일입니다.
  • WholesaleCBDC-Confidential.yml - 블록체인 앱 빌더와 함께 사용하여 WholesaleCBDC Confidential 체인코드를 스캐폴딩할 수 있는 사양 파일입니다.
  • WholesaleCBDC-Confidential_postman_collection.json - 체인 코드에서 API를 테스트할 수 있는 Postman 모음입니다.
  • README.md - 체인 코드 작업을 위한 단계별 안내서입니다.

도매 CBDC 체인코드 패키지를 가져오려면 Oracle Blockchain Platform 디지털 자산 콘솔에서 디지털 자산 탭을 누른 다음 도매 CBDC - 기밀 애플리케이션을 선택합니다.

사양 파일

기밀 도매 CBDC 사양 파일(WholesaleCBDC-Confidential.yml)은 확장된 토큰 분류법 프레임워크 사양 파일을 기반으로 합니다. 여기에는 애플리케이션별 체인코드를 생성하는 model 속성이 포함됩니다. 이 경우 model: wcbdc는 체인코드가 생성될 때 도매 CBDC 애플리케이션에 대한 추가 메소드를 생성합니다. 또한 기밀 모드에서 체인 코드를 생성하는 true로 설정된 confidential 속성을 포함합니다. 다음 사양 파일은 confidentialmodel 속성과 필요한 동작을 보여줍니다.

주:

기밀 모드 체인코드는 정수 값만 커밋할 수 있는 페더슨 약정을 사용합니다. 내부적으로 입력 값에 10의 지수를 곱한 다음 사양 파일의 십진수 값을 기반으로 결과가 정수로 저장됩니다. 체인코드 패키지를 사용할 때 일관성 없는 계산을 방지하려면 사양 파일에서 decimal 행을 수정한 다음 체인코드를 동기화하지 마십시오.
#
# Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved.
#
confidential: true # Privacy-preserving feature to enable transaction-level confidentiality
assets:
 
# Token asset to manage the complete life cycle of Wholesale CBDC token.
 
    - name: CBDC # Asset name
      type: token # Asset type
      standard: ttf+   # Token standard
      events: true # Supports event code generation for non-GET methods
      model: wcbdc # Supports creation of additional methods for Wholesale CBDC application
 
      anatomy:
          type: fungible # Token type
          unit: fractional # Token unit
 
      behavior: # Token behaviors
          - divisible:
                decimal: 2
          - mintable:
                mint_approval_required: true
          - transferable
          - burnable:
                burn_approval_required: true
          - holdable
          - roles:
                minter_role_name: minter
                burner_role_name: burner
                notary_role_name: notary
                mint_approver_role_name: notary
                burn_approver_role_name: notary
 
      properties: # Custom asset attributes for wholesale CBDC token
 
          - name: Currency_Name # The digital form of the national currency issued by a central bank for wholesale transactions between financial institutions
            type: string
            mandatory: true
 
customMethods: