#stellar

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

#722 in Magic Beans

Download history 874/week @ 2023-10-22 625/week @ 2023-10-29 788/week @ 2023-11-05 1570/week @ 2023-11-12 1234/week @ 2023-11-19 2455/week @ 2023-11-26 3042/week @ 2023-12-03 2609/week @ 2023-12-10 2619/week @ 2023-12-17 617/week @ 2023-12-24 1625/week @ 2023-12-31 3410/week @ 2024-01-07 3171/week @ 2024-01-14 2312/week @ 2024-01-21 2726/week @ 2024-01-28 3275/week @ 2024-02-04

11,605 downloads per month
Used in 43 crates (13 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
~22K SLoC