helium / blockchain-core

Apache License 2.0
213 stars 85 forks source link

verify poc key pair #1312

Closed andymck closed 2 years ago

andymck commented 2 years ago

This verifies the presented secret ( a key pair ) as part of a receipt v2 txn are valid, ie the public key was derived from the private key. It also checks the presented poc key hash was derived from the same public key. This ties the secret to the active/public POC on the ledger and guards against spurious secrets being presented