Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add a wallet sign command #2201

Open
wants to merge 48 commits into
base: staging
Choose a base branch
from

Conversation

edpoptart
Copy link

Executes the ``sign`` command to sign a message with the provided wallet or wallet hotkey.

This command signs a message using the provided wallet.

Usage:
    The command generates a signature for a given message using the provided wallet

Optional arguments:
    --wallet.hotkey: A hotkey to use to sign the message instead of the wallet coldkey

Example usage::

    btcli wallet sign --wallet.name default --message '{"something": "here", "timestamp": 1719908486}'
    btcli wallet sign --wallet.name default --wallet.name hotkey --message '{"something": "here", "timestamp": 1719908486}'

Note:
    When using `btcli`, `w` is used interchangeably with `wallet`. You may use either based on your preference for brevity or clarity.
    This command is essential for users to easily prove their ownership over a coldkey or a hotkey.

@edpoptart edpoptart changed the title Add a wallet sign command using a keypair feat: add a wallet sign command using a keypair Aug 2, 2024
@edpoptart edpoptart force-pushed the feat/kbr/wallet-sign-command branch 3 times, most recently from 1ad6fbc to 7a2d343 Compare August 2, 2024 21:41
@edpoptart edpoptart changed the title feat: add a wallet sign command using a keypair feat: add a wallet sign command Aug 5, 2024
@edpoptart edpoptart force-pushed the feat/kbr/wallet-sign-command branch from 7a2d343 to c7cedf6 Compare August 6, 2024 19:23
@gus-opentensor gus-opentensor added the In Review Cortex Team Members Reviewing label Aug 7, 2024
@edpoptart edpoptart force-pushed the feat/kbr/wallet-sign-command branch from c7cedf6 to 72fd7ed Compare August 7, 2024 13:44
@edpoptart edpoptart force-pushed the feat/kbr/wallet-sign-command branch from 72fd7ed to 9289213 Compare August 7, 2024 16:09
@edpoptart edpoptart force-pushed the feat/kbr/wallet-sign-command branch 3 times, most recently from c7fe4e6 to ff87923 Compare August 8, 2024 16:01
@alex-drocks
Copy link

Lgtm

Copy link

@IvanAnishchuk IvanAnishchuk left a comment

Choose a reason for hiding this comment

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

LGTM!

I think this feature is important and standard for most Crypto ecosystems. There's interest from several subnet operators and validators. Can we please get this rolling?

Is there anything anybody can do to help merge this quickly?

…-and-assertions

Applies metagraph fix and assertions
…tensor-reconnection-logic

Add reconnection logic + tests
…pentensor#2287)

* removed exit sys call for ConnectionRefusedError in _get_substrate

* removed unnecessary sys import

* ruff format fix
…ate-delegate-info-to-onchain-indentities

# Conflicts:
#	bittensor/subtensor.py
#	tests/unit_tests/test_subtensor.py
…ate-delegate-info-to-onchain-indentities

`Migrate Delegate Info to onchain Indentities` implimentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In Review Cortex Team Members Reviewing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants