Skip to content

Add EIP-2612–style gasless approvals to DRC20 #2

@steel-judoka

Description

@steel-judoka

Motivation

  • Better UX, users can sign once off-chain. a relayer or dapp submits permit + e.g. transfer_from in one flow.
  • Aligns with the familiar permit pattern from ethereum(EIP-2612), adapted for Dusk.

Scope

  • permit(owner, spender, value, deadline, signature) to set allowance with a valid BLS signature.
  • permit_nonces(owner) and domain_separator() for replay protection and off-chain signing.
  • Design is tailored for Dusk (no EIP-712; uses abi::hash and abi::verify_bls). See the implementation PR for full rationale and encoding details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions