Skip to content

Commit

Permalink
add script integrity field to swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed Sep 30, 2022
1 parent ca4c4ba commit 55f1cc4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions specifications/api/swagger.yaml
Expand Up @@ -459,6 +459,14 @@ x-scriptHash: &scriptHash
example:
- script1gr69m385thgvkrtspk73zmkwk537wxyxuevs2u9cukglvtlkz4k

x-scriptIntegrityHash: &scriptIntegrityHash
description: A script data integrity hash - 32 bytes
type: string
format: bech32
pattern: "^(script_data)1[0-9a-z]*$"
example:
- script_data16apaenn9ut6s40lcw3l8v68xawlrlq20z2966uzcx8jmv2q9uy7qau558d

x-credentialPubKey: &credentialPubKey
description: A public key (public key without chain code) for credential - 32 bytes
type: string
Expand Down Expand Up @@ -2766,6 +2774,7 @@ components:
mint: *ApiAssetMintBurn
burn: *ApiAssetMintBurn
validity_interval: *ApiValidityIntervalExplicit
script_integrity: *scriptIntegrityHash

x-txBody: &txBody
oneOf:
Expand Down

0 comments on commit 55f1cc4

Please sign in to comment.