數位資產版本增強功能

Oracle Blockchain Platform Digital Assets Edition 包含增強版的 Blockchain App Builder。

增強版的 Blockchain App Builder 支援下列功能。

  • 自動產生完整的鏈碼應用程式,適用於批發 CBDC 和債券市集情境。
  • 自動產生 API 閘道的包裝函式 API 套裝程式,每個鏈碼方法都有專用端點。您可以設定端點的名稱,以符合組織的命名慣例。
  • 支援鏈碼事件,可傳送即時通知和觸發工作流程。
  • 支援產生 Postman 集合中的背書參數。
  • 支援使用延伸權杖分類架構標準的鏈碼,以限制機密或機密資料,讓其僅供涉及交易的組織存取。
  • 擴充權杖分類架構標準中的新帳戶、角色及交易功能。
  • CLI 與 Visual Studio Code 擴充 UI 的增強功能。

CLI 增強功能

ochain invoke 指令支援下列其他可選引數。

暫時對應
選項:-t, --transient
將暫時對應的索引鍵 / 值組指定為 JSON 字串。
範例:
ochain invoke <method> 's01' 's10' \
  -r <remote OBP URL> -u <username> -s <password> \
  -t '{"key": "value"}'
標頭
選項:-H, --headers
以 JSON 格式指定額外的標頭作為索引鍵 / 值組。預設會設定 Content-Type: application/json 標頭,而且無法覆寫。請勿將其包含在自訂標頭中。
範例:
ochain invoke <method> 's01' 's10' \
  -r <remote OBP URL> -u <username> -s <password> \
  -H '{"confidential-transaction": "true"}'
附加價值
選項:-e, --endorsers
指定作為字串 JSON 陣列的端點對等 URL。您無法將此選項與 -S, --sameorgendorser 選項結合使用來自相同組織的背書人。
範例:
ochain invoke <method> 's01' 's10' \
  -r <remote OBP URL> -u <username> -s <password> \
  -e '["org1-xyz-abc.blockchain.ocp.oraclecloud.com:20009", "org1-xyz-abc.blockchain.ocp.oraclecloud.com:20010"]'
相同組織背書人
選項:-S, --sameorgendorser
指示是否使用相同組織背書人的布林值旗標。此選項無法與 -e, --endorsers 選項結合使用,以指定背書人。
範例:
ochain invoke <method> 's01' 's10' \
  -r <remote OBP URL> -u <username> -s <password> \
  -S true
下列範例顯示所有選擇性參數:
ochain invoke <method> 's01' 's10' \
  -r <remote OBP URL> -u <username> -s <password> \
  -H '{"confidential-transaction": "true"}' \
  -S false \
  -t '{"key": "value"}' \
  -e '["org1-xyz-abc.blockchain.ocp.oraclecloud.com:20009", "org1-xyz-abc.blockchain.ocp.oraclecloud.com:20010"]'

Visual Studio 程式碼擴充增強功能

遠端環境的執行窗格中提供暫時對應、標頭、背書人以及相同組織背書人的選項。當您選取遠端環境時,可以使用顯示進階選項控制項。按一下顯示進階選項,即可為目前選取的方法 (函數) 設定這些選項。如果您選取其他方法,就會重設進階選項。

對於每個進階選項,您可以新增和移除值,以及選取或清除呼叫方法時所要包含的選項。相同組織背書人核取方塊位於背書同儕對話方塊中。如果您選取相同組織背書人,則會忽略您手動指定的任何背書對等。相反地,異動將由與使用者相同組織的同儕背書。

對於機密鏈碼,預設會為 Visual Studio Code 擴充中的所有方法設定 Confidential-Transaction: true 標頭。您可以編輯此頁首。