stellar-strkey

Crates.iostellar-strkey
lib.rsstellar-strkey
version0.0.11
sourcesrc
created_at2022-09-02 04:14:09.396056
updated_at2024-09-11 01:31:23.712265
descriptionEncode and decode strkeys for Stellar.
homepagehttps://github.com/stellar/rs-stellar-strkey
repositoryhttps://github.com/stellar/rs-stellar-strkey
max_upload_size
id657175
size81,918
Stellar (Rust crate publisher) (stellar-crates)

documentation

README

rs-stellar-strkey

Library and CLI containing types and functionality for working with Stellar Strkeys.

This repository contains code that is in early development, incomplete, not tested, and not recommended for use. The API is unstable, experimental, and is receiving breaking changes frequently.

Usage

Library

To use the library, include in your toml:

stellar-strkey = "..."

This crate does not depend on the std crate and can be used in no_std environments. However, please note that it relies on the alloc crate for certain types such as Vec.

CLI

To use the CLI:

cargo install --locked stellar-strkey --version ... --features cli
Examples

Decode a G account/public-key strkey:

$ stellar-strkey decode GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWHF
PublicKeyEd25519(PublicKey(0000000000000000000000000000000000000000000000000000000000000000))

Decode a C contract strkey:

$ stellar-strkey decode CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABSC4
Contract(Contract(0000000000000000000000000000000000000000000000000000000000000000))

License: Apache-2.0

Commit count: 43

cargo fmt