• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Bitcoin
      • Riscv
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Bigmems
      • Builtins
      • Execloader
      • Aleo
        • Aleobft
          • Aleobft-static
          • Aleobft-stake2
          • Aleobft-dynamic
            • Correctness
            • Definition
              • Initialization
              • Transitions
              • States
                • Committees
                • System-states
                • Certificates
                  • Certificate-set-unequivocalp
                  • Cert-with-author+round
                  • Certificate-sets-unequivocalp
                  • Certificate
                    • Certificatep
                    • Certificate-fix
                    • Make-certificate
                    • Certificate-equiv
                    • Certificate->transactions
                    • Change-certificate
                      • Certificate->round
                      • Certificate->previous
                      • Certificate->endorsers
                      • Certificate->author
                    • Certs-with-author
                    • Certs-with-authors+round
                    • Certs-with-round
                    • Unequivocal-certs-with-authors+round
                    • Unequivocal-cert-with-author+round
                    • Certificate-option
                    • Cert-set->author-set
                    • Cert-set->round-set
                    • Certificates-with-signer
                    • Certificates-ordered-even-p
                    • Certs-with-authors
                    • Certificate->signers
                    • Certificate-set
                    • Certificate-list
                  • Messages
                  • Validator-states
                  • Transactions
                  • Blocks
                  • Addresses
                • Events
            • Aleobft-stake
            • Aleobft-proposals
            • Library-extensions
          • Leo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Certificate

    Change-certificate

    Modifying constructor for certificate structures.

    Syntax
    (change-certificate x 
                        [:author <author>] 
                        [:round <round>] 
                        [:transactions <transactions>] 
                        [:previous <previous>] 
                        [:endorsers <endorsers>]) 
    

    This is an often useful alternative to make-certificate.

    We construct a new certificate structure that is a copy of x, except that you can explicitly change some particular fields. Any fields you don't mention just keep their values from x.

    Definition

    This is an ordinary change- macro introduced by fty::defprod.

    Macro: change-certificate

    (defmacro change-certificate (x &rest args)
      (std::change-aggregate
           'certificate
           x args
           '((:author . certificate->author)
             (:round . certificate->round)
             (:transactions . certificate->transactions)
             (:previous . certificate->previous)
             (:endorsers . certificate->endorsers))
           'change-certificate
           'nil))