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
poetry shell
poetry show -v # copy this virtualenv path and set it as your Python interpreter
poetry add near-seed-phrase-py
Pip
pip install near-seed-phrase-py
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file near_seed_phrase_py-0.1.2.tar.gz.
File metadata
- Download URL: near_seed_phrase_py-0.1.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.8 Darwin/21.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cce6f80763fb16ebb41cbe704c80912ab9c326d1c744f8a8051523c2e545401
|
|
| MD5 |
cee6289fb4af0f5536fde9e6c2bacfcb
|
|
| BLAKE2b-256 |
b55b88bcaa21eabc0b84b1e1679c862951dcdcc537371112b5631b25e880992e
|
File details
Details for the file near_seed_phrase_py-0.1.2-py3-none-any.whl.
File metadata
- Download URL: near_seed_phrase_py-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.8 Darwin/21.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6044eca46db1d77cc16d277e1da3db80c9bc349305b26739b225b1ac3bf6028
|
|
| MD5 |
58740a8bfd55cf3b4ecc3b0bbc93b3b7
|
|
| BLAKE2b-256 |
0179565dc51c2516fd95dc5b7438539b7d1db1f4b80cb6688ec09c203f6c69c1
|