Skip to content

Commit c7ea571

Browse files
committed
feat: calidus key support
1 parent f1347b4 commit c7ea571

File tree

9 files changed

+325
-2
lines changed

9 files changed

+325
-2
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"Bstake",
2020
"Bticker",
2121
"Bxpub",
22+
"calidus",
2223
"cbor",
2324
"decentralisation",
2425
"delegators",

blockfrost-openapi.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9775,6 +9775,47 @@ components:
97759775
type: string
97769776
description: Hash of the transaction including retirement
97779777
example: 252f622976d39e646815db75a77289cf16df4ad2b287dd8e3a889ce14c13d1a8
9778+
calidus_key:
9779+
type: object
9780+
nullable: true
9781+
description: Last valid Calidus key for the pool
9782+
properties:
9783+
nonce:
9784+
type: integer
9785+
example: 149292000
9786+
description: A unique number used once to prevent replay attacks and ensure the uniqueness of the key registration
9787+
calidus_id:
9788+
type: string
9789+
example: calidus15yt3nqapz799tvp2lt8adttt29k6xa2xnltahn655tu4sgcph42p7
9790+
description: A Bech32-encoded identifier derived from the key data, uniquely identifying the Calidus key registration
9791+
pub_key:
9792+
type: string
9793+
example: 57758911253f6b31df2a87c10eb08a2c9b8450768cb8dd0d378d93f7c2e220f0
9794+
description: The raw hexadecimal-encoded calidus public key used for verification purposes
9795+
block_height:
9796+
type: integer
9797+
example: 11548408
9798+
description: The block height at which this key registration was recorded
9799+
block_time:
9800+
type: integer
9801+
example: 1740858988
9802+
description: Block time of the key registration
9803+
epoch:
9804+
type: integer
9805+
example: 543
9806+
description: Epoch number of the key registration
9807+
tx_hash:
9808+
type: string
9809+
example: f45ed21c6bc1832cf7f11f4bd6ee47ca9684b4f6f8ff8a398aa2df065eac0ba8
9810+
description: The transaction hash that submitted the Calidus key registration
9811+
required:
9812+
- nonce
9813+
- calidus_id
9814+
- pub_key
9815+
- block_height
9816+
- block_time
9817+
- epoch
9818+
- tx_hash
97789819
required:
97799820
- pool_id
97809821
- hex
@@ -9795,6 +9836,7 @@ components:
97959836
- owners
97969837
- registration
97979838
- retirement
9839+
- calidus_key
97989840
pool_history:
97999841
type: array
98009842
items:

docs/blockfrost-openapi.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10304,6 +10304,53 @@ components:
1030410304
type: string
1030510305
description: Hash of the transaction including retirement
1030610306
example: 252f622976d39e646815db75a77289cf16df4ad2b287dd8e3a889ce14c13d1a8
10307+
calidus_key:
10308+
type: object
10309+
nullable: true
10310+
description: Last valid Calidus key for the pool
10311+
properties:
10312+
nonce:
10313+
type: integer
10314+
example: 149292000
10315+
description: >-
10316+
A unique number used once to prevent replay attacks and ensure
10317+
the uniqueness of the key registration
10318+
calidus_id:
10319+
type: string
10320+
example: calidus15yt3nqapz799tvp2lt8adttt29k6xa2xnltahn655tu4sgcph42p7
10321+
description: >-
10322+
A Bech32-encoded identifier derived from the key data, uniquely
10323+
identifying the Calidus key registration
10324+
pub_key:
10325+
type: string
10326+
example: 57758911253f6b31df2a87c10eb08a2c9b8450768cb8dd0d378d93f7c2e220f0
10327+
description: >-
10328+
The raw hexadecimal-encoded calidus public key used for
10329+
verification purposes
10330+
block_height:
10331+
type: integer
10332+
example: 11548408
10333+
description: The block height at which this key registration was recorded
10334+
block_time:
10335+
type: integer
10336+
example: 1740858988
10337+
description: Block time of the key registration
10338+
epoch:
10339+
type: integer
10340+
example: 543
10341+
description: Epoch number of the key registration
10342+
tx_hash:
10343+
type: string
10344+
example: f45ed21c6bc1832cf7f11f4bd6ee47ca9684b4f6f8ff8a398aa2df065eac0ba8
10345+
description: The transaction hash that submitted the Calidus key registration
10346+
required:
10347+
- nonce
10348+
- calidus_id
10349+
- pub_key
10350+
- block_height
10351+
- block_time
10352+
- epoch
10353+
- tx_hash
1030710354
required:
1030810355
- pool_id
1030910356
- hex
@@ -10324,6 +10371,7 @@ components:
1032410371
- owners
1032510372
- registration
1032610373
- retirement
10374+
- calidus_key
1032710375
pool_history:
1032810376
type: array
1032910377
items:

json-schema.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

openapi.json

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13281,6 +13281,57 @@
1328113281
"description": "Hash of the transaction including retirement",
1328213282
"example": "252f622976d39e646815db75a77289cf16df4ad2b287dd8e3a889ce14c13d1a8"
1328313283
}
13284+
},
13285+
"calidus_key": {
13286+
"type": "object",
13287+
"nullable": true,
13288+
"description": "Last valid Calidus key for the pool",
13289+
"properties": {
13290+
"nonce": {
13291+
"type": "integer",
13292+
"example": 149292000,
13293+
"description": "A unique number used once to prevent replay attacks and ensure the uniqueness of the key registration"
13294+
},
13295+
"calidus_id": {
13296+
"type": "string",
13297+
"example": "calidus15yt3nqapz799tvp2lt8adttt29k6xa2xnltahn655tu4sgcph42p7",
13298+
"description": "A Bech32-encoded identifier derived from the key data, uniquely identifying the Calidus key registration"
13299+
},
13300+
"pub_key": {
13301+
"type": "string",
13302+
"example": "57758911253f6b31df2a87c10eb08a2c9b8450768cb8dd0d378d93f7c2e220f0",
13303+
"description": "The raw hexadecimal-encoded calidus public key used for verification purposes"
13304+
},
13305+
"block_height": {
13306+
"type": "integer",
13307+
"example": 11548408,
13308+
"description": "The block height at which this key registration was recorded"
13309+
},
13310+
"block_time": {
13311+
"type": "integer",
13312+
"example": 1740858988,
13313+
"description": "Block time of the key registration"
13314+
},
13315+
"epoch": {
13316+
"type": "integer",
13317+
"example": 543,
13318+
"description": "Epoch number of the key registration"
13319+
},
13320+
"tx_hash": {
13321+
"type": "string",
13322+
"example": "f45ed21c6bc1832cf7f11f4bd6ee47ca9684b4f6f8ff8a398aa2df065eac0ba8",
13323+
"description": "The transaction hash that submitted the Calidus key registration"
13324+
}
13325+
},
13326+
"required": [
13327+
"nonce",
13328+
"calidus_id",
13329+
"pub_key",
13330+
"block_height",
13331+
"block_time",
13332+
"epoch",
13333+
"tx_hash"
13334+
]
1328413335
}
1328513336
},
1328613337
"required": [
@@ -13302,7 +13353,8 @@
1330213353
"reward_account",
1330313354
"owners",
1330413355
"registration",
13305-
"retirement"
13356+
"retirement",
13357+
"calidus_key"
1330613358
]
1330713359
},
1330813360
"pool_history": {

openapi.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10304,6 +10304,53 @@ components:
1030410304
type: string
1030510305
description: Hash of the transaction including retirement
1030610306
example: 252f622976d39e646815db75a77289cf16df4ad2b287dd8e3a889ce14c13d1a8
10307+
calidus_key:
10308+
type: object
10309+
nullable: true
10310+
description: Last valid Calidus key for the pool
10311+
properties:
10312+
nonce:
10313+
type: integer
10314+
example: 149292000
10315+
description: >-
10316+
A unique number used once to prevent replay attacks and ensure
10317+
the uniqueness of the key registration
10318+
calidus_id:
10319+
type: string
10320+
example: calidus15yt3nqapz799tvp2lt8adttt29k6xa2xnltahn655tu4sgcph42p7
10321+
description: >-
10322+
A Bech32-encoded identifier derived from the key data, uniquely
10323+
identifying the Calidus key registration
10324+
pub_key:
10325+
type: string
10326+
example: 57758911253f6b31df2a87c10eb08a2c9b8450768cb8dd0d378d93f7c2e220f0
10327+
description: >-
10328+
The raw hexadecimal-encoded calidus public key used for
10329+
verification purposes
10330+
block_height:
10331+
type: integer
10332+
example: 11548408
10333+
description: The block height at which this key registration was recorded
10334+
block_time:
10335+
type: integer
10336+
example: 1740858988
10337+
description: Block time of the key registration
10338+
epoch:
10339+
type: integer
10340+
example: 543
10341+
description: Epoch number of the key registration
10342+
tx_hash:
10343+
type: string
10344+
example: f45ed21c6bc1832cf7f11f4bd6ee47ca9684b4f6f8ff8a398aa2df065eac0ba8
10345+
description: The transaction hash that submitted the Calidus key registration
10346+
required:
10347+
- nonce
10348+
- calidus_id
10349+
- pub_key
10350+
- block_height
10351+
- block_time
10352+
- epoch
10353+
- tx_hash
1030710354
required:
1030810355
- pool_id
1030910356
- hex
@@ -10324,6 +10371,7 @@ components:
1032410371
- owners
1032510372
- registration
1032610373
- retirement
10374+
- calidus_key
1032710375
pool_history:
1032810376
type: array
1032910377
items:

src/generated-types.ts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9680,6 +9680,44 @@ export interface components {
96809680
* ] */
96819681
registration: string[];
96829682
retirement: string[];
9683+
/** @description Last valid Calidus key for the pool */
9684+
calidus_key: {
9685+
/**
9686+
* @description A unique number used once to prevent replay attacks and ensure the uniqueness of the key registration
9687+
* @example 149292000
9688+
*/
9689+
nonce: number;
9690+
/**
9691+
* @description A Bech32-encoded identifier derived from the key data, uniquely identifying the Calidus key registration
9692+
* @example calidus15yt3nqapz799tvp2lt8adttt29k6xa2xnltahn655tu4sgcph42p7
9693+
*/
9694+
calidus_id: string;
9695+
/**
9696+
* @description The raw hexadecimal-encoded calidus public key used for verification purposes
9697+
* @example 57758911253f6b31df2a87c10eb08a2c9b8450768cb8dd0d378d93f7c2e220f0
9698+
*/
9699+
pub_key: string;
9700+
/**
9701+
* @description The block height at which this key registration was recorded
9702+
* @example 11548408
9703+
*/
9704+
block_height: number;
9705+
/**
9706+
* @description Block time of the key registration
9707+
* @example 1740858988
9708+
*/
9709+
block_time: number;
9710+
/**
9711+
* @description Epoch number of the key registration
9712+
* @example 543
9713+
*/
9714+
epoch: number;
9715+
/**
9716+
* @description The transaction hash that submitted the Calidus key registration
9717+
* @example f45ed21c6bc1832cf7f11f4bd6ee47ca9684b4f6f8ff8a398aa2df065eac0ba8
9718+
*/
9719+
tx_hash: string;
9720+
} | null;
96839721
};
96849722
pool_history: {
96859723
/**

src/schemas/pools/pool.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,47 @@ properties:
8080
type: string
8181
description: Hash of the transaction including retirement
8282
example: "252f622976d39e646815db75a77289cf16df4ad2b287dd8e3a889ce14c13d1a8"
83+
calidus_key:
84+
type: object
85+
nullable: true
86+
description: Last valid Calidus key for the pool
87+
properties:
88+
nonce:
89+
type: integer
90+
example: 149292000
91+
description: A unique number used once to prevent replay attacks and ensure the uniqueness of the key registration
92+
calidus_id:
93+
type: string
94+
example: "calidus15yt3nqapz799tvp2lt8adttt29k6xa2xnltahn655tu4sgcph42p7"
95+
description: A Bech32-encoded identifier derived from the key data, uniquely identifying the Calidus key registration
96+
pub_key:
97+
type: string
98+
example: "57758911253f6b31df2a87c10eb08a2c9b8450768cb8dd0d378d93f7c2e220f0"
99+
description: The raw hexadecimal-encoded calidus public key used for verification purposes
100+
block_height:
101+
type: integer
102+
example: 11548408
103+
description: The block height at which this key registration was recorded
104+
block_time:
105+
type: integer
106+
example: 1740858988
107+
description: Block time of the key registration
108+
epoch:
109+
type: integer
110+
example: 543
111+
description: Epoch number of the key registration
112+
tx_hash:
113+
type: string
114+
example: "f45ed21c6bc1832cf7f11f4bd6ee47ca9684b4f6f8ff8a398aa2df065eac0ba8"
115+
description: The transaction hash that submitted the Calidus key registration
116+
required:
117+
- nonce
118+
- calidus_id
119+
- pub_key
120+
- block_height
121+
- block_time
122+
- epoch
123+
- tx_hash
83124
required:
84125
- pool_id
85126
- hex
@@ -100,3 +141,4 @@ required:
100141
- owners
101142
- registration
102143
- retirement
144+
- calidus_key

0 commit comments

Comments
 (0)