Python tool for creating and converting mnemonic-phrases, public key and private key for NEAR accounts.
Project description
NEAR Seed Phrase
Python tool for creating and converting mnemonic-phrases, public key and private key for NEAR accounts.
🚨 Status: BETA, contributions welcome!
Ported to Python from https://github.com/near/near-seed-phrase
Install
poetry add near-seed-phrase-py
poetry shell
poetry show -v # copy this virtualenv path and set it as your Python interpreter
poetry install
Usage
from near_seed_phrase.main import generate_seed_phrase, parse_seed_phrase
# Generate a BIP39 seed phrase with its corresponding Keys
generate_seed_phrase()
Returns:
{
seed_phrase: str # BIP39 seed phrase
secret_key: str # ed25519 secret/private key, formatted for NEAR (e.g. "ed25519:[SECRET_KEY]")
public_key: str # ed25519 public key, formatted for NEAR (e.g. "ed25519:[PUBLIC_KEY]")
public_key_hex: str # lowercase hex representation of public_key that can be used as an implicit account ID; see https://docs.near.org/integrator/implicit-accounts
}
# Recover keys from a BIP39 seed phrase (returns same response as generate_seed_phrase())
parse_seed_phrase(seed_phrase)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for near_seed_phrase_py-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f82bf18ddb376c5e533225c2fb22a79778723c9fbf93eee8a5c940d177d0688 |
|
MD5 | 5227a5f8f609507822d150f7d6363edc |
|
BLAKE2b-256 | 716f24acdb454cedc11330fcefd57a3fe811e1cfd64a73ae38d3ace98f695352 |
Close
Hashes for near_seed_phrase_py-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7334756625c991d907a077284804603c67863cd84b17f8a4e8c3847089a58c3f |
|
MD5 | c1e9b6d10d4a9b0fcd5bd797b2865584 |
|
BLAKE2b-256 | a95ebb9c7a21f55f6a083909386c36ae539c812d7321ccbb6200296dea043d23 |