ritual-dapp-passkey

Implement WebAuthn passkey authentication with SECP256R1 verification for Ritual dApps.

62|56|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/ritual-foundation/ritual-dapp-skills --skill ritual-dapp-passkey
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ritual-dapp-passkey
Source: https://github.com/ritual-foundation/ritual-dapp-skills/tree/main/skills/ritual-dapp-passkey
Command: npx skills add https://github.com/ritual-foundation/ritual-dapp-skills --skill ritual-dapp-passkey

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Passwordless and WebAuthn-based authentication flows for Ritual dApps require secure integration across browser, device attestation, and on-chain verification. This Skill provides a coherent reference for implementing passkey login, P-256 verification, and native precompiles.

Core Features & Use Cases

  • TxPasskey and SECP256R1 precompile support for native authentication and signature verification on Ritual Chain.
  • Frontend passkey flows including registration, WebAuthn assertions, public key extraction, and low-S normalization.
  • On-chain verification utilities and samples showing how to gate actions with passkeys and verify assertions with precompiled or Solady libraries.

Quick Start

Register a passkey on the client, then perform a test login and on-chain verification to validate the end-to-end flow.

Frequently Asked Questions about ritual-dapp-passkey

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement passkey login for a web3 dApp?

Passkey login for a web3 dApp is implemented using WebAuthn for frontend registration and signing, combined with on-chain SECP256R1 precompile verification to validate signatures natively. This Skill provides the end-to-end flow for passwordless authentication.

What is SECP256R1 precompile verification for on-chain authentication?

SECP256R1 precompile verification is a native on-chain mechanism used to validate WebAuthn passkey signatures directly on the Ritual Chain. It enables secure passwordless wallet authentication without relying on traditional private keys.

How do I verify WebAuthn assertions on-chain using P-256 signatures?

You verify WebAuthn assertions on-chain by extracting the public key from the client and utilizing precompiled or Solady verification libraries to gate smart contract actions with P-256 signatures.

Do I need low-S normalization for WebAuthn signature verification?

Yes, low-S normalization is required for WebAuthn signature verification to ensure the P-256 signatures conform to the standard format expected by the on-chain SECP256R1 precompile validation logic.

Can I build a passwordless wallet using WebAuthn on the Ritual Chain?

Yes, you can build a passwordless wallet on the Ritual Chain by implementing TxPasskey flows, frontend WebAuthn registration, and native SECP256R1 precompile signature verification to authenticate users.

What is the best way to gate smart contract actions with passkeys?

The best way to gate smart contract actions with passkeys is to implement on-chain verification utilities that check WebAuthn assertions using SECP256R1 precompiles or Solady libraries before authorizing transactions.