@@ -227,71 +227,85 @@ impl Cip36 {
227227
228228 /// Get the `is_cip36` flag from the registration.
229229 /// True if it is CIP-36 format, false if CIP-15 format.
230+ #[ must_use]
230231 pub fn is_cip36 ( & self ) -> Option < bool > {
231232 self . key_registration . is_cip36
232233 }
233234
234235 /// Get the voting public keys from the registration.
236+ #[ must_use]
235237 pub fn voting_pks ( & self ) -> & Vec < VotingPubKey > {
236238 & self . key_registration . voting_pks
237239 }
238240
239241 /// Get the stake public key from the registration.
242+ #[ must_use]
240243 pub fn stake_pk ( & self ) -> Option < & VerifyingKey > {
241244 self . key_registration . stake_pk . as_ref ( )
242245 }
243246
244247 /// Get the payment address from the registration.
248+ #[ must_use]
245249 pub fn payment_address ( & self ) -> Option < & ShelleyAddress > {
246250 self . key_registration . payment_addr . as_ref ( )
247251 }
248252
249253 /// Get the nonce from the registration.
254+ #[ must_use]
250255 pub fn nonce ( & self ) -> Option < u64 > {
251256 self . key_registration . nonce
252257 }
253258
254259 /// Get the purpose from the registration.
260+ #[ must_use]
255261 pub fn purpose ( & self ) -> u64 {
256262 self . key_registration . purpose
257263 }
258264
259265 /// Get the raw nonce from the registration.
266+ #[ must_use]
260267 pub fn raw_nonce ( & self ) -> Option < u64 > {
261268 self . key_registration . raw_nonce
262269 }
263270
264271 /// Is the payment address in the registration payable?
272+ #[ must_use]
265273 pub fn is_payable ( & self ) -> Option < bool > {
266274 self . key_registration . is_payable
267275 }
268276
269277 /// Get the signature from the registration witness.
278+ #[ must_use]
270279 pub fn signature ( & self ) -> Option < ed25519_dalek:: Signature > {
271280 self . registration_witness . signature
272281 }
273282
274283 /// Get the slot number of this CIP-36 registration.
284+ #[ must_use]
275285 pub fn slot ( & self ) -> Slot {
276286 self . slot
277287 }
278288
279289 /// Get the network of this CIP-36 registration.
290+ #[ must_use]
280291 pub fn network ( & self ) -> Network {
281292 self . network
282293 }
283294
284295 /// Get the transaction index of this CIP-36 registration.
296+ #[ must_use]
285297 pub fn txn_idx ( & self ) -> TxnIndex {
286298 self . txn_idx
287299 }
288300
289301 /// Get the Catalyst strict flag.
302+ #[ must_use]
290303 pub fn is_strict_catalyst ( & self ) -> bool {
291304 self . is_catalyst_strict
292305 }
293306
294307 /// Is the CIP-36 registration valid?
308+ #[ must_use]
295309 pub fn is_valid ( & self ) -> bool {
296310 // Check everything
297311 self . is_valid_signature
@@ -302,26 +316,31 @@ impl Cip36 {
302316 }
303317
304318 /// Is the signature valid?
319+ #[ must_use]
305320 pub fn is_valid_signature ( & self ) -> bool {
306321 self . is_valid_signature
307322 }
308323
309324 /// Is the payment address network tag match the provided network?
325+ #[ must_use]
310326 pub fn is_valid_payment_address_network ( & self ) -> bool {
311327 self . is_valid_payment_address_network
312328 }
313329
314330 /// Is the voting keys valid?
331+ #[ must_use]
315332 pub fn is_valid_voting_keys ( & self ) -> bool {
316333 self . is_valid_voting_keys
317334 }
318335
319336 /// Is the purpose valid?
337+ #[ must_use]
320338 pub fn is_valid_purpose ( & self ) -> bool {
321339 self . is_valid_purpose
322340 }
323341
324342 /// Get the error report.
343+ #[ must_use]
325344 pub fn err_report ( & self ) -> & ProblemReport {
326345 & self . err_report
327346 }
0 commit comments