#decode #encode-decode #stellar #contract #cli #strkeys #strkey

bin+lib stellar-strkey

Encode and decode strkeys for Stellar

5 releases

0.0.8 Oct 24, 2023
0.0.7 Jan 3, 2023
0.0.6 Oct 5, 2022
0.0.2 Sep 9, 2022
0.0.1 Sep 2, 2022

#850 in Magic Beans

Download history 2187/week @ 2023-11-25 3084/week @ 2023-12-02 2478/week @ 2023-12-09 2492/week @ 2023-12-16 659/week @ 2023-12-23 1406/week @ 2023-12-30 3312/week @ 2024-01-06 2777/week @ 2024-01-13 2294/week @ 2024-01-20 2711/week @ 2024-01-27 3430/week @ 2024-02-03 2841/week @ 2024-02-10 2741/week @ 2024-02-17 2932/week @ 2024-02-24 2403/week @ 2024-03-02 891/week @ 2024-03-09

9,533 downloads per month
Used in 48 crates (17 directly)

Apache-2.0

28KB
643 lines

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 = "..."

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

Dependencies

~0.3–1MB
~23K SLoC