Skip to content

Commit

Permalink
Update drep keys description to point to CIP-0129
Browse files Browse the repository at this point in the history
Note that we spent time trying to have a unique DRep keys schema
representing both keys and scripts hashes but for reasons unknown to
the mere mortals, bump.sh kept rejecting our changes hence why we
resorted to keeping the 2 types but with identical underlying
representations.
  • Loading branch information
paweljakubas authored and abailly committed Dec 13, 2024
1 parent 0863a7f commit be83ff0
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions specifications/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,17 @@ x-drepKeyHash: &drepKeyHash
type: string
format: bech32
example: drep1wqaz0q0zhtxlgn0ewssevn2mrtm30fgh2g7hr7z9rj5856457mm
description: DRep's key hash.
description: DRep's key hash according to CIP-0129.
pattern: "^(drep)1[0-9a-z]*$"

x-drepScriptHash: &drepScriptHash
type: string
format: bech32
example: drep1wqaz0q0zhtxlgn0ewssevn2mrtm30fgh2g7hr7z9rj5856457mm
description: |
DRep's script hash according to CIP-0129. Note this is identical
to drepKeyHash but for unknown reasons we need to different
schema fragments here.
pattern: "^(drep)1[0-9a-z]*$"

x-walletAccountXPubkey: &walletAccountXPubkey
Expand Down Expand Up @@ -2971,7 +2981,9 @@ components:
- no_confidence
title: casting a default vote
- <<: *drepKeyHash
title: vote to a drep represented by key/script hash
title: vote to a drep represented by key hash
- <<: *drepScriptHash
title: vote to a drep represented by script hash

ApiWalletDelegationNext: &ApiWalletDelegationNext
type: object
Expand Down

0 comments on commit be83ff0

Please sign in to comment.