Skip to content

Conversation

@tzaffi
Copy link
Contributor

@tzaffi tzaffi commented Jan 26, 2022

Experimental FIDO2 OpCodes

This is a branch containing OpCodes which are needed for FIDO2 authentication:

  • base64_decode
  • json_ref
  • ecdsa_* opcodes for new curveSecp256r1

The usage patterns are not set in stone and these op codes may change before being released.

Note

This PR is NOT intended to cause any changes in the current protocol or even, really, in vFuture. These opcodes need to be gated so that the new opcodes only get turned on by testers who want it (we will maintain a small feature branch with the changes to turn them on).

TESTING

  • Commit b38c152c with fidoVersion = 7 passes all tests
  • Commit d566072b with fidoVersion = LogicVersion + 1 passes all tests

@tzaffi tzaffi marked this pull request as draft January 26, 2022 22:19
@tzaffi tzaffi changed the title 🤞 WIP: Placehoder PR for FIDO2 OpCodes Jan 27, 2022
Copy link
Contributor

@jannotti jannotti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is good. Note to further reviewers: This PR is NOT intended to cause any changes in the current protocol or even, really, in vFuture. These opcodes needs to be gated so that the new opcodes only get turned on by testers who want it (we will maintain a small feature branch with the changes to turn them on).

With that in mind, I think fidoVersion should be set to LogicSigVersion+1 before merging. (And set to LogicSigVersion only in the small feature branch.)

@jannotti jannotti merged commit d946d2f into algorand:master Mar 10, 2022
jannotti pushed a commit to jannotti/go-algorand that referenced this pull request Mar 13, 2022
Three opcodes that all pertain to FIDO2 authorization.  They are slated for Teal7 here, but they can be delayed by changing fidoVersion.

Co-authored-by: Igor Durovic <igor.durovic@algorand.com>
Co-authored-by: algoidurovic <91566643+algoidurovic@users.noreply.github.com>
Co-authored-by: shiqi.zheng@algorand.com <shiqi.zheng@algorand.com>
@algojack algojack mentioned this pull request Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants