• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
        • Prime-fields
        • Json
        • Syntheto
        • File-io-light
        • Cryptography
          • R1cs
          • Interfaces
            • Definterface-hmac
            • Definterface-encrypt-block
            • Definterface-hash
            • Definterface-encrypt-init
            • Definterface-pbkdf2
            • Aes-256-cbc-pkcs7-interface
            • Aes-192-cbc-pkcs7-interface
            • Aes-128-cbc-pkcs7-interface
            • Aes-256-interface
            • Aes-192-interface
            • Aes-128-interface
            • Pbkdf2-hmac-sha-512-interface
            • Keccak-256-interface
            • Sha-256-interface
            • Keccak-512-interface
            • Ripemd-160-interface
            • Sha-512-interface
            • Pbkdf2-hmac-sha-256-interface
            • Hmac-sha-512-interface
            • Hmac-sha-256-interface
            • Secp256k1-interface
              • Secp256k1-mul
              • Secp256k1-add
              • Secp256k1-priv-to-pub
              • Secp256k1-ecdsa-interface
            • Sha-2
            • Keccak
            • Kdf
            • Mimc
            • Padding
            • Hmac
            • Elliptic-curves
            • Attachments
            • Elliptic-curve-digital-signature-algorithm
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Secp256k1-interface

    Secp256k1-priv-to-pub

    Calculate a secp256k1 public key from a private key.

    We constrain this function to return a public key unconditionally.

    We also constrain this function to fix its argument to a private key.

    Definitions and Theorems

    Theorem: secp256k1-pub-key-p-of-secp256k1-priv-to-pub

    (defthm secp256k1-pub-key-p-of-secp256k1-priv-to-pub
      (secp256k1-pub-key-p (secp256k1-priv-to-pub priv)))

    Theorem: secp256k1-priv-to-pub-fixes-input-priv

    (defthm secp256k1-priv-to-pub-fixes-input-priv
      (equal (secp256k1-priv-to-pub (secp256k1-priv-key-fix priv))
             (secp256k1-priv-to-pub priv)))

    Theorem: secp256k1-priv-key-equiv-implies-equal-secp256k1-priv-to-pub-1

    (defthm
         secp256k1-priv-key-equiv-implies-equal-secp256k1-priv-to-pub-1
      (implies (secp256k1-priv-key-equiv priv priv-equiv)
               (equal (secp256k1-priv-to-pub priv)
                      (secp256k1-priv-to-pub priv-equiv)))
      :rule-classes (:congruence))