law Recover.correct

bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/secp256k1/laws_recover.bend:20

import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/laws_recover.bend as LawsRecover
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/secp256k1.bend as K
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/secp256k1/ecdsa.bend as ES

20# public key recovery (SEC 1 4.1.6)
21law Recover.correct:
22  for +one: Nat
23  for +h1: {one == 1n : Nat}
24  for +h: List<&2, U32>
25  for +sig: List<&2, U32>
26  {K.recover(h, sig) == ES.recover(one, h, sig) : Maybe<&2, List<&2, U32>>}

Uses (7)

Used by (0)

No other definition uses this definition.