11---
22title : Certificate.ts
3- nav_order : 30
3+ nav_order : 31
44parent : Modules
55---
66
@@ -11,7 +11,7 @@ parent: Modules
1111<h2 className = " text-delta" >Table of contents</h2 >
1212
1313- [ effect] ( #effect )
14- - [ Effect (namespace)] ( #effect -namespace )
14+ - [ Either (namespace)] ( #either -namespace )
1515- [ encoding] ( #encoding )
1616 - [ toCBORBytes] ( #tocborbytes )
1717 - [ toCBORHex] ( #tocborhex )
@@ -57,7 +57,7 @@ parent: Modules
5757
5858# effect
5959
60- ## Effect (namespace)
60+ ## Either (namespace)
6161
6262Effect-based error handling variants for functions that can fail.
6363
@@ -72,7 +72,27 @@ Convert a Certificate to CBOR bytes.
7272** Signature**
7373
7474``` ts
75- export declare const toCBORBytes: (certificate : Certificate , options ? : CBOR .CodecOptions ) => Uint8Array
75+ export declare const toCBORBytes: (
76+ input :
77+ | StakeRegistration
78+ | StakeDeregistration
79+ | StakeDelegation
80+ | PoolRegistration
81+ | PoolRetirement
82+ | RegCert
83+ | UnregCert
84+ | VoteDelegCert
85+ | StakeVoteDelegCert
86+ | StakeRegDelegCert
87+ | VoteRegDelegCert
88+ | StakeVoteRegDelegCert
89+ | AuthCommitteeHotCert
90+ | ResignCommitteeColdCert
91+ | RegDrepCert
92+ | UnregDrepCert
93+ | UpdateDrepCert ,
94+ options ? : CBOR .CodecOptions
95+ ) => Uint8Array
7696` ` `
7797
7898Added in v2.0.0
@@ -84,7 +104,27 @@ Convert a Certificate to CBOR hex string.
84104**Signature**
85105
86106` ` ` ts
87- export declare const toCBORHex: (certificate : Certificate , options ? : CBOR .CodecOptions ) => string
107+ export declare const toCBORHex: (
108+ input :
109+ | StakeRegistration
110+ | StakeDeregistration
111+ | StakeDelegation
112+ | PoolRegistration
113+ | PoolRetirement
114+ | RegCert
115+ | UnregCert
116+ | VoteDelegCert
117+ | StakeVoteDelegCert
118+ | StakeRegDelegCert
119+ | VoteRegDelegCert
120+ | StakeVoteRegDelegCert
121+ | AuthCommitteeHotCert
122+ | ResignCommitteeColdCert
123+ | RegDrepCert
124+ | UnregDrepCert
125+ | UpdateDrepCert ,
126+ options ? : CBOR .CodecOptions
127+ ) => string
88128` ` `
89129
90130Added in v2.0.0
@@ -140,7 +180,27 @@ Parse a Certificate from CBOR bytes.
140180**Signature **
141181
142182```ts
143- export declare const fromCBORBytes : (bytes : Uint8Array , options ?: CBOR .CodecOptions ) => Certificate
183+ export declare const fromCBORBytes : (
184+ bytes : Uint8Array ,
185+ options ?: CBOR .CodecOptions
186+ ) =>
187+ | StakeRegistration
188+ | StakeDeregistration
189+ | StakeDelegation
190+ | PoolRegistration
191+ | PoolRetirement
192+ | RegCert
193+ | UnregCert
194+ | VoteDelegCert
195+ | StakeVoteDelegCert
196+ | StakeRegDelegCert
197+ | VoteRegDelegCert
198+ | StakeVoteRegDelegCert
199+ | AuthCommitteeHotCert
200+ | ResignCommitteeColdCert
201+ | RegDrepCert
202+ | UnregDrepCert
203+ | UpdateDrepCert
144204```
145205
146206Added in v2 .0.0
@@ -152,7 +212,27 @@ Parse a Certificate from CBOR hex string.
152212**Signature **
153213
154214```ts
155- export declare const fromCBORHex : (hex : string , options ?: CBOR .CodecOptions ) => Certificate
215+ export declare const fromCBORHex : (
216+ hex : string ,
217+ options ?: CBOR .CodecOptions
218+ ) =>
219+ | StakeRegistration
220+ | StakeDeregistration
221+ | StakeDelegation
222+ | PoolRegistration
223+ | PoolRetirement
224+ | RegCert
225+ | UnregCert
226+ | VoteDelegCert
227+ | StakeVoteDelegCert
228+ | StakeRegDelegCert
229+ | VoteRegDelegCert
230+ | StakeVoteRegDelegCert
231+ | AuthCommitteeHotCert
232+ | ResignCommitteeColdCert
233+ | RegDrepCert
234+ | UnregDrepCert
235+ | UpdateDrepCert
156236```
157237
158238Added in v2 .0.0
0 commit comments