crossbario / crossbario/autobahn-python

_eip712_delegate_connect

Open
#1,406 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement XBR
Dominant language
Python
Stars
2.5k
Forks
768
PR merge metrics
No merged PRs in 30d

Description

add a new EIP712 type for off-chain use with delegates (like https://github.com/crossbario/autobahn-python/blob/master/autobahn/xbr/_eip712_domain_create.py)

{
    "delegate": "0x7cB57B5A97eAbe94205C07890BE4c1aD31E486A8",
    "owner": "0x12AE66CDc592e10B60f9097a7b0D3C59fce29876",
    "url": "https://planet.xbr.network",
    "timestamp": "2020-07-25T14:50:06.039Z",
    "timezone": "UTC+2",
    "country": "DE",
    "subdivision": "DE-BY",
    "nonce": 2328637202,
    "failed": {
        "connection-offer": "1c2c674e-a4d2-4865-b3cb-862f96736879",
        "error": "unreachable",
        "message": "no route to host"
    }
}

Actual input in above for the first boot of a delegate is:

  • owner
  • url

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compare the requested type with the referenced autobahn/xbr/_eip712_domain_create.py example, then locate the existing EIP712 type definitions and their tests in this repository. The work is complete when an off-chain delegate connection type accepts the specified owner and URL inputs and represents the delegate connection data described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
blockchain
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.